summaryrefslogtreecommitdiff
path: root/tests/utils_tests/test_autoreload.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils_tests/test_autoreload.py')
-rw-r--r--tests/utils_tests/test_autoreload.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/utils_tests/test_autoreload.py b/tests/utils_tests/test_autoreload.py
index c50d141cf3..6fe7ae64fa 100644
--- a/tests/utils_tests/test_autoreload.py
+++ b/tests/utils_tests/test_autoreload.py
@@ -558,11 +558,12 @@ class ReloaderTests(SimpleTestCase):
def ensure_file(self, path):
path.parent.mkdir(exist_ok=True, parents=True)
path.touch()
- # On Linux and Windows updating the mtime of a file using touch() will set a timestamp
- # value that is in the past, as the time value for the last kernel tick is used rather
- # than getting the correct absolute time.
- # To make testing simpler set the mtime to be the observed time when this function is
- # called.
+ # On Linux and Windows updating the mtime of a file using touch() will
+ # set a timestamp value that is in the past, as the time value for the
+ # last kernel tick is used rather than getting the correct absolute
+ # time.
+ # To make testing simpler set the mtime to be the observed time when
+ # this function is called.
self.set_mtime(path, time.time())
return path.absolute()