We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26ef459 commit f523453Copy full SHA for f523453
1 file changed
Lib/test/memory_watchdog.py
@@ -1,8 +1,5 @@
1
"""Memory watchdog: periodically read the memory usage of the main test process
2
and print it out, until terminated."""
3
-# stdin should refer to the process' /proc/<PID>/statm: we don't pass the
4
-# process' PID to avoid a race condition in case of - unlikely - PID recycling.
5
-# If the process crashes, reading from the /proc entry will fail with ESRCH.
6
7
8
import sys
@@ -28,7 +25,7 @@ def watchdog(pid):
28
25
29
26
def main():
30
27
if len(sys.argv) != 2:
31
- print("usage: python {sys.argv[0]) pid")
+ print(f"usage: python {sys.argv[0]} pid")
32
sys.exit(1)
33
pid = int(sys.argv[1])
34
0 commit comments