8000
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 3c7e216 commit 38eb6e8Copy full SHA for 38eb6e8
mypyc/test/test_run.py
@@ -10,6 +10,7 @@
10
import shutil
11
import subprocess
12
import sys
13
+import time
14
from typing import Any, Iterator, cast
15
16
from mypy import build
@@ -169,6 +170,12 @@ def run_case_inner(self, testcase: DataDrivenTestCase) -> None:
169
170
# new by distutils, shift the mtime of all of the
171
# generated artifacts back by a second.
172
fudge_dir_mtimes(WORKDIR, -1)
173
+ # On Ubuntu, changing the mtime doesn't work reliably. As
174
+ # a workaround, sleep.
175
+ #
176
+ # TODO: Figure out a better approach, since this slows down tests.
177
+ if sys.platform == "linux":
178
+ time.sleep(1.0)
179
180
step += 1
181
with chdir_manager(".."):
0 commit comments