Skip to content

Commit

Permalink
Change the directory instead of setting PYTHONSAFEPATH
Browse files Browse the repository at this point in the history
PYTHONSAFEPATH is a feature from Python 3.11
  • Loading branch information
picsel2 committed Mar 1, 2024
1 parent 241a52d commit 51e3ee9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ jobs:
sudo meson install
- name: Run unit tests with Pytest
run: |
PYTHONSAFEPATH=1 PYTHONPATH=/usr/local/lib/python3.8/site-packages ./run-tests
mkdir dummydir
# Change to dummy directory to prevent adding the source root to sys.path
cd dummydir
PYTHONPATH=/usr/local/lib/python3.8/site-packages ../run-tests

0 comments on commit 51e3ee9

Please sign in to comment.