@@ -161,39 +161,6 @@ def get_exported_projects() -> List[Path]:
161
161
return [x for x in exporter_dir .glob ("*.osparc" )]
162
162
163
163
164
- @pytest .fixture
165
- async def monkey_patch_asyncio_subporcess (mocker ):
166
- # TODO: The below bug is not allowing me to fully test,
167
- # mocking and waiting for an update
168
- # https://bugs.python.org/issue35621
169
- # this issue was patched in 3.8, no need
170
- if sys .version_info .major == 3 and sys .version_info .minor >= 8 :
171
- raise RuntimeError (
172
- "Issue no longer present in this version of python, "
173
- "please remote this mock on python >= 3.8"
174
- )
175
-
176
- import subprocess
177
-
178
- async def create_subprocess_exec (* command , ** extra_params ):
179
- class MockResponse :
180
- def __init__ (self , command , ** kwargs ):
181
- self .proc = subprocess .Popen (command , ** extra_params )
182
-
183
- async def communicate (self ):
184
- return self .proc .communicate ()
185
-
186
- @property
187
- def returncode (self ):
188
- return self .proc .returncode
189
-
190
- mock_response = MockResponse (command , ** extra_params )
191
-
192
- return mock_response
193
-
194
- mocker .patch ("asyncio.create_subprocess_exec" , side_effect = create_subprocess_exec )
195
-
196
-
197
164
@pytest .fixture (scope = "session" )
198
165
def push_services_to_registry (
199
166
docker_registry : str , node_meta_schema : Dict
@@ -294,7 +261,6 @@ async def test_import_export_import(
294
261
db_engine ,
295
262
redis_client ,
296
263
export_version ,
297
- monkey_patch_asyncio_subporcess ,
298
264
simcore_services ,
299
265
monkey_patch_aiohttp_request_url ,
300
266
):
0 commit comments