mik-laj commented on a change in pull request #16954:
URL: https://github.com/apache/airflow/pull/16954#discussion_r669173742
##########
File path: tests/operators/test_python.py
##########
@@ -58,6 +63,22 @@
]
+def _clean_stop_pypi_server(pid):
+ subprocess.Popen(['kill', '-9', f'{pid}'])
+
+
[email protected]()
+def pypi_server():
+ if not os.path.exists('/root/packages'):
+ os.makedirs('/root/packages')
+ process = subprocess.Popen(['pypi-server', '-p', '8282'])
+ yield
+ _clean_stop_pypi_server(process.pid)
Review comment:
```suggestion
process.kill()
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]