From aba7072795f4ea46a8533124eba38b4a7607aaeb Mon Sep 17 00:00:00 2001 From: Sean Quah Date: Wed, 16 Mar 2022 15:10:41 +0000 Subject: [PATCH] Use pip to install olddeps, as suggested by dmr --- .ci/scripts/test_old_deps.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.ci/scripts/test_old_deps.sh b/.ci/scripts/test_old_deps.sh index 419778fccc..9965d21dcf 100755 --- a/.ci/scripts/test_old_deps.sh +++ b/.ci/scripts/test_old_deps.sh @@ -67,6 +67,8 @@ python3 -c "$REMOVE_DEV_DEPENDENCIES" # Helpfully, pip doesn't indicate the error; it returns 0. # TODO: bump pyasn to >=0.4.6? pipx install poetry==1.1.12 -~/.local/bin/poetry lock -~/.local/bin/poetry install -E "all test" -~/.local/bin/poetry run trial -j2 tests +~/.local/bin/poetry run pip install .[all,test] + +# Run the tests. Since we didn't install in editable mode, we have to invoke trial +# with `python -m` so that the working directory contains `tests/`. +~/.local/bin/poetry run python -m twisted.trial -j2 tests