Skip to content

Commit 9bf386c

Browse files
Martin Hoyerlukaszachy
authored andcommitted
Update pytest on c9s when using site-packages
1 parent 1c647fb commit 9bf386c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/unit/test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ rlJournalStart
4444
rlRun "TEST_VENV=$(mktemp -d)"
4545

4646
rlRun "python3 -m venv $TEST_VENV --system-site-packages"
47+
# pytest-container==0.4.0 is not compatible with c9s pytest 6.2.2
48+
if rlIsCentOS "=9"; then
49+
rlRun "$TEST_VENV/bin/pip install -U pytest"
50+
fi
4751
rlRun "$TEST_VENV/bin/pip install pytest-container pytest-xdist"
4852

4953
# Note: we're not in the root directory!

0 commit comments

Comments
 (0)