TestExecutionExtraction and TestExecutionRestart tests failing
dennisvang opened this issue · 1 comments
dennisvang commented
Description and cause
All tests in TestExecutionExtraction
and TestExecutionRestart
fail because the deploy_dir
does not exist.
How to reproduce
Using pyupdater 4.0-2-g7093d76: run tests from test_pyupdater.py
in a virtual environment (venv
).
Verified using Python 3.8.7 on Windows 10 and Python 3.8.10 on Ubuntu 20.04.
Notes:
- Looks like the test code hasn't changed in a long time, so I'm wondering: is this just me?
- Cause appears to be the
os.system(cmd)
call failing (returns1
) with the following traceback from the process:Traceback (most recent call last): File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed ModuleNotFoundError: No module named 'dsdev_utils'
- This
ModuleNotFoundError
smells like avenv
issue... I'm running the tests in avenv
, but the subshell spawned byos.system(cmd)
does not know that... Could add a command to activate thevenv
in the subshell?
dennisvang commented
Closing this, as it's probably an issue with my local environment.