Skip to content

toml may not be available on systemwide python #2670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions tests/test_pythonpackage_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,15 @@ def test_systemwide_python(self):
p2 = os.path.normpath(pybin)
assert p1 == p2
except RuntimeError as e:
# (remember this is not in a virtualenv)
# Some deps may not be installed, so we just avoid to raise
# an exception here, as a missing dep should not make the test
# fail.
if "pep517" in str(e.args):
# System python probably doesn't have pep517 available!
# (remember this is not in a virtualenv)
# Not much we can do in that case since pythonpackage needs it,
# so we'll skip this particular check.
pass
elif "toml" in str(e.args):
# System python probably doesn't have toml available!
pass
else:
raise
Expand Down