File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
2
import sys
3
+ import time
3
4
import shlex
4
5
import contextlib
5
6
from nimporter .lib import run_process , PYTHON
6
7
7
8
8
9
@contextlib .contextmanager
9
10
def temporarily_install_nimporter ():
11
+ # Hopefully prevent permission denied errors in CI when deleting artifacts
12
+ time .sleep (5 )
13
+
10
14
try :
11
15
code , _ , _ = run_process (
12
16
shlex .split (f'{ PYTHON } setup.py install --force' ),
Original file line number Diff line number Diff line change 1
1
import sys
2
+ import time
2
3
import shlex
3
4
from zipfile import ZipFile
4
5
from tests import temporarily_install_nimporter
@@ -104,6 +105,7 @@ def test_bdist_wheel_all_targets_installs_correctly():
104
105
shlex .split (f'{ PYTHON } -m pip uninstall test_nimporter -y' ),
105
106
'NIMPORTER_INSTRUMENT' in os .environ
106
107
)
108
+ time .sleep (5 )
107
109
108
110
109
111
def test_sdist_all_targets_installs_correctly ():
@@ -155,6 +157,7 @@ def test_sdist_all_targets_installs_correctly():
155
157
shlex .split (f'{ PYTHON } -m pip uninstall test_nimporter -y' ),
156
158
'NIMPORTER_INSTRUMENT' in os .environ
157
159
)
160
+ time .sleep (5 )
158
161
159
162
160
163
def test_setup_py_all_targets_installs_correctly ():
@@ -194,3 +197,4 @@ def test_setup_py_all_targets_installs_correctly():
194
197
shlex .split (f'{ PYTHON } -m pip uninstall test_nimporter -y' ),
195
198
'NIMPORTER_INSTRUMENT' in os .environ
196
199
)
200
+ time .sleep (5 )
You can’t perform that action at this time.
0 commit comments