Skip to content

Commit 6a9fcbc

Browse files
authored
Skip a test under PyPy that varies on version (#294)
1 parent 91510f8 commit 6a9fcbc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pyflakes/test/test_api.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ def test_nonKeywordAfterKeywordSyntaxError(self):
514514
foo(bar=baz, bax)
515515
%s""" % (sourcePath, column, message, last_line)])
516516

517+
@skipIf(PYPY, 'Output in PyPy varies highly, dependending on version')
517518
def test_invalidEscape(self):
518519
"""
519520
The invalid escape syntax raises ValueError in Python 2
@@ -523,13 +524,6 @@ def test_invalidEscape(self):
523524
sourcePath = self.makeTempFile(r"foo = '\xyz'")
524525
if ver < (3,):
525526
decoding_error = "%s: problem decoding source\n" % (sourcePath,)
526-
elif PYPY:
527-
# pypy3 only
528-
decoding_error = """\
529-
%s:1:6: %s: ('unicodeescape', b'\\\\xyz', 0, 2, 'truncated \\\\xXX escape')
530-
foo = '\\xyz'
531-
^
532-
""" % (sourcePath, 'UnicodeDecodeError')
533527
else:
534528
last_line = ' ^\n' if ERROR_HAS_LAST_LINE else ''
535529
# Column has been "fixed" since 3.2.4 and 3.3.1

0 commit comments

Comments
 (0)