File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -3517,10 +3517,12 @@ def test_file_modified_after_execution(self):
35173517 print("hello")
35183518 """
35193519
3520+ # the time.sleep is needed for low-resolution filesystems like HFS+
35203521 commands = """
35213522 filename = $_frame.f_code.co_filename
35223523 f = open(filename, "w")
35233524 f.write("print('goodbye')")
3525+ import time; time.sleep(1)
35243526 f.close()
35253527 ll
35263528 """
@@ -3530,10 +3532,12 @@ def test_file_modified_after_execution(self):
35303532 self .assertIn ("was edited" , stdout )
35313533
35323534 def test_file_modified_after_execution_with_multiple_instances (self ):
3535+ # the time.sleep is needed for low-resolution filesystems like HFS+
35333536 script = """
35343537 import pdb; pdb.Pdb().set_trace()
35353538 with open(__file__, "w") as f:
35363539 f.write("print('goodbye')\\ n" * 5)
3540+ import time; time.sleep(1)
35373541 import pdb; pdb.Pdb().set_trace()
35383542 """
35393543
You can’t perform that action at this time.
0 commit comments