Skip to content

Commit

Permalink
toml may not be available on systemwide python (kivy#2670)
Browse files Browse the repository at this point in the history
  • Loading branch information
misl6 authored Sep 10, 2022
1 parent c883d8a commit ed43cbb
Showing 1 changed file with 7 additions and 3 deletions.
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

0 comments on commit ed43cbb

Please sign in to comment.