Skip to content

Commit 6fde87c

Browse files
committed
TEST: Remove clock-tick waits
1 parent 81780a3 commit 6fde87c

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

nipype/utils/tests/test_filemanip.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@
2020
import numpy as np
2121

2222

23-
def _wait_for_tick(tic=None):
24-
tic = time.time() if tic is None else tic
25-
toc = time.time()
26-
while int(tic) == int(toc):
27-
toc = time.time()
28-
29-
3023
def _ignore_atime(stat):
3124
return stat[:7] + stat[8:]
3225

@@ -205,11 +198,9 @@ def test_recopy():
205198
if copy and not use_hardlink and hashmethod == 'timestamp':
206199
continue
207200

208-
tic = time.time()
209201
copyfile(orig_img, new_img, **kwargs)
210202
img_stat = _ignore_atime(os.stat(new_img))
211203
hdr_stat = _ignore_atime(os.stat(new_hdr))
212-
_wait_for_tick(tic)
213204
copyfile(orig_img, new_img, **kwargs)
214205
err_msg = "Regular - OS: {}; Copy: {}; Hardlink: {}".format(
215206
os.name, copy, use_hardlink)
@@ -220,11 +211,9 @@ def test_recopy():
220211
os.unlink(new_img)
221212
os.unlink(new_hdr)
222213

223-
tic = time.time()
224214
copyfile(img_link, new_img, **kwargs)
225215
img_stat = _ignore_atime(os.stat(new_img))
226216
hdr_stat = _ignore_atime(os.stat(new_hdr))
227-
_wait_for_tick(tic)
228217
copyfile(img_link, new_img, **kwargs)
229218
err_msg = "Symlink - OS: {}; Copy: {}; Hardlink: {}".format(
230219
os.name, copy, use_hardlink)

0 commit comments

Comments
 (0)