Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pep Covas Vidal
PyFstat
Commits
367e4a02
Commit
367e4a02
authored
Jul 23, 2019
by
Reinhard Prix
Browse files
test_makefakedata_usecached: add 1s waiting to ensure timestamp changed
- fix test that can otherwise fail (observed on MacOSX)
parent
fa204efb
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests.py
View file @
367e4a02
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment