Skip to content

Commit d459fcf

Browse files
misl6ShyamQt
authored andcommitted
toml may not be available on systemwide python (kivy#2670)
1 parent 87468b9 commit d459fcf

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/test_pythonpackage_basic.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,15 @@ def test_systemwide_python(self):
269269
p2 = os.path.normpath(pybin)
270270
assert p1 == p2
271271
except RuntimeError as e:
272+
# (remember this is not in a virtualenv)
273+
# Some deps may not be installed, so we just avoid to raise
274+
# an exception here, as a missing dep should not make the test
275+
# fail.
272276
if "pep517" in str(e.args):
273277
# System python probably doesn't have pep517 available!
274-
# (remember this is not in a virtualenv)
275-
# Not much we can do in that case since pythonpackage needs it,
276-
# so we'll skip this particular check.
278+
pass
279+
elif "toml" in str(e.args):
280+
# System python probably doesn't have toml available!
277281
pass
278282
else:
279283
raise

0 commit comments

Comments
 (0)