File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change 20
20
import numpy as np
21
21
22
22
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
-
30
23
def _ignore_atime (stat ):
31
24
return stat [:7 ] + stat [8 :]
32
25
@@ -205,11 +198,9 @@ def test_recopy():
205
198
if copy and not use_hardlink and hashmethod == 'timestamp' :
206
199
continue
207
200
208
- tic = time .time ()
209
201
copyfile (orig_img , new_img , ** kwargs )
210
202
img_stat = _ignore_atime (os .stat (new_img ))
211
203
hdr_stat = _ignore_atime (os .stat (new_hdr ))
212
- _wait_for_tick (tic )
213
204
copyfile (orig_img , new_img , ** kwargs )
214
205
err_msg = "Regular - OS: {}; Copy: {}; Hardlink: {}" .format (
215
206
os .name , copy , use_hardlink )
@@ -220,11 +211,9 @@ def test_recopy():
220
211
os .unlink (new_img )
221
212
os .unlink (new_hdr )
222
213
223
- tic = time .time ()
224
214
copyfile (img_link , new_img , ** kwargs )
225
215
img_stat = _ignore_atime (os .stat (new_img ))
226
216
hdr_stat = _ignore_atime (os .stat (new_hdr ))
227
- _wait_for_tick (tic )
228
217
copyfile (img_link , new_img , ** kwargs )
229
218
err_msg = "Symlink - OS: {}; Copy: {}; Hardlink: {}" .format (
230
219
os .name , copy , use_hardlink )
You can’t perform that action at this time.
0 commit comments