Get rid of Python 3.3 artifacts

This commit is contained in:
Dave Halter
2020-01-05 23:59:38 +01:00
parent 4090c80401
commit 9ee7409d8a
6 changed files with 8 additions and 9 deletions

View File

@@ -37,8 +37,7 @@ def test_python_exception_matches(code):
error, = errors
actual = error.message
assert actual in wanted
# Somehow in Python3.3 the SyntaxError().lineno is sometimes None
assert line_nr is None or line_nr == error.start_pos[0]
assert line_nr == error.start_pos[0]
def test_non_async_in_async():