diff --git a/tests.py b/tests.py index f3a43a023ec305cca7272d9bf832850e0caef411..26275f5bc03586e6c43571e2c71555cdda11533f 100644 --- a/tests.py +++ b/tests.py @@ -5,7 +5,7 @@ import shutil import pyfstat import lalpulsar import logging - +import time class Test(unittest.TestCase): outdir = "TestData" @@ -85,6 +85,7 @@ class Writer(Test): Writer.run_makefakedata() time_second = os.path.getmtime(Writer.sftfilepath) self.assertTrue(time_first == time_second) + time.sleep(1) # make sure timestamp is actually different! os.system("touch {}".format(Writer.config_file_name)) Writer.run_makefakedata() time_third = os.path.getmtime(Writer.sftfilepath)