Skip to content

Commit b913403

Browse files
committed
Skip test_debugging in Python 2.7
1 parent 190b920 commit b913403

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_09_examples_debugging.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
def test_debugging(ctestdir):
99
"""Debugging example
1010
"""
11+
# The debugging example requires the enum module which is has been
12+
# added to the standard kibrary in Python 3.4. Skip this test if
13+
# the module is not available.
14+
_ = pytest.importorskip("enum")
1115
with get_example("debugging.py").open("rt") as f:
1216
ctestdir.makepyfile(f.read())
1317
result = ctestdir.runpytest("--verbose")

0 commit comments

Comments
 (0)