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 64add91 commit e43dbb9Copy full SHA for e43dbb9
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
@@ -167,6 +168,12 @@ def run_case_inner(self, testcase: DataDrivenTestCase) -> None:
167
168
# new by distutils, shift the mtime of all of the
169
# generated artifacts back by a second.
170
fudge_dir_mtimes(WORKDIR, -1)
171
+ # On Ubuntu, changing the mtime doesn't work reliably. As
172
+ # a workaround, sleep.
173
+ #
174
+ # TODO: Figure out a better approach, since this slows down tests.
175
+ if sys.platform == "linux":
176
+ time.sleep(1.0)
177
178
step += 1
179
with chdir_manager(".."):
0 commit comments