Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit af55abd

Browse files
committed
Don't test raise from in Python 2.x.
1 parent 9fc3670 commit af55abd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tests/parser_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ class InnerClass(object):
408408
assert str(inner_class) == 'in public nested class `InnerClass`'
409409

410410

411+
@pytest.mark.skipif(six.PY2, reason='`raise from` is invalid in Python 2.x')
411412
def test_raise_from():
412413
"""Make sure 'raise x from y' doesn't trip the parser."""
413414
parser = Parser()

0 commit comments

Comments
 (0)