5
5
from builtins import open
6
6
7
7
import os
8
- import time
9
8
from tempfile import mkstemp , mkdtemp
10
9
import warnings
11
10
20
19
import numpy as np
21
20
22
21
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
22
def _ignore_atime (stat ):
31
23
return stat [:7 ] + stat [8 :]
32
24
@@ -205,11 +197,9 @@ def test_recopy():
205
197
if copy and not use_hardlink and hashmethod == 'timestamp' :
206
198
continue
207
199
208
- tic = time .time ()
209
200
copyfile (orig_img , new_img , ** kwargs )
210
201
img_stat = _ignore_atime (os .stat (new_img ))
211
202
hdr_stat = _ignore_atime (os .stat (new_hdr ))
212
- _wait_for_tick (tic )
213
203
copyfile (orig_img , new_img , ** kwargs )
214
204
err_msg = "Regular - OS: {}; Copy: {}; Hardlink: {}" .format (
215
205
os .name , copy , use_hardlink )
@@ -220,11 +210,9 @@ def test_recopy():
220
210
os .unlink (new_img )
221
211
os .unlink (new_hdr )
222
212
223
- tic = time .time ()
224
213
copyfile (img_link , new_img , ** kwargs )
225
214
img_stat = _ignore_atime (os .stat (new_img ))
226
215
hdr_stat = _ignore_atime (os .stat (new_hdr ))
227
- _wait_for_tick (tic )
228
216
copyfile (img_link , new_img , ** kwargs )
229
217
err_msg = "Symlink - OS: {}; Copy: {}; Hardlink: {}" .format (
230
218
os .name , copy , use_hardlink )
0 commit comments