Skip to content

Commit

Permalink
test subprocess: do an iterative sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Jan 7, 2024
1 parent c0adac2 commit 5dd2158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psutil/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def spawn_testproc(cmd=None, **kwds):
pyline = (
"from time import sleep;"
+ "open(r'%s', 'w').close();" % testfn
+ "sleep(60);"
+ "[sleep(0.1) for x in range(100)];" # 10 secs
)
cmd = [PYTHON_EXE, "-c", pyline]
sproc = subprocess.Popen(cmd, **kwds)
Expand Down

0 comments on commit 5dd2158

Please sign in to comment.