diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-08-12 11:00:33 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-12 11:00:33 (GMT) |
| commit | 8b64ce4eb461d5b6c8dd23d3f3f5dbe0d52f6161 (patch) | |
| tree | 8247812dd51505d78b89c6bf9968dd04e71de91c | |
| parent | d6d68cfd864576edaba664009f73d2080483e83e (diff) | |
| download | cpython-8b64ce4eb461d5b6c8dd23d3f3f5dbe0d52f6161.zip cpython-8b64ce4eb461d5b6c8dd23d3f3f5dbe0d52f6161.tar.gz cpython-8b64ce4eb461d5b6c8dd23d3f3f5dbe0d52f6161.tar.bz2 | |
[3.13] gh-111051: [tests] Wait a second to support filesystems with low-resolution mtime (GH-121959) (GH-122114)
(cherry picked from commit cad11a2bdceb6d4683ae5654ce555cdf5f191217)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
| -rw-r--r-- | Lib/test/test_pdb.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 8654d8e..9b2c885 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -3416,10 +3416,12 @@ def bœr(): print("hello") """ + # the time.sleep is needed for low-resolution filesystems like HFS+ commands = """ filename = $_frame.f_code.co_filename f = open(filename, "w") f.write("print('goodbye')") + import time; time.sleep(1) f.close() ll """ @@ -3429,10 +3431,12 @@ def bœr(): self.assertIn("was edited", stdout) def test_file_modified_after_execution_with_multiple_instances(self): + # the time.sleep is needed for low-resolution filesystems like HFS+ script = """ import pdb; pdb.Pdb().set_trace() with open(__file__, "w") as f: f.write("print('goodbye')\\n" * 5) + import time; time.sleep(1) import pdb; pdb.Pdb().set_trace() """ |
