From 86a8ae13d06e7e5612616df4d87760df3fac7879 Mon Sep 17 00:00:00 2001 From: Steven Myint Date: Tue, 12 Sep 2017 21:00:25 -0700 Subject: Skip a test under PyPy that varies on version --- pyflakes/test/test_api.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pyflakes/test/test_api.py b/pyflakes/test/test_api.py index 3f54ca4..8aa6df9 100644 --- a/pyflakes/test/test_api.py +++ b/pyflakes/test/test_api.py @@ -514,6 +514,7 @@ foo(bar=baz, bax) foo(bar=baz, bax) %s""" % (sourcePath, column, message, last_line)]) + @skipIf(PYPY, 'Output in PyPy varies highly, dependending on version') def test_invalidEscape(self): """ The invalid escape syntax raises ValueError in Python 2 @@ -523,13 +524,6 @@ foo(bar=baz, bax) sourcePath = self.makeTempFile(r"foo = '\xyz'") if ver < (3,): decoding_error = "%s: problem decoding source\n" % (sourcePath,) - elif PYPY: - # pypy3 only - decoding_error = """\ -%s:1:6: %s: ('unicodeescape', b'\\\\xyz', 0, 2, 'truncated \\\\xXX escape') -foo = '\\xyz' - ^ -""" % (sourcePath, 'UnicodeDecodeError') else: last_line = ' ^\n' if ERROR_HAS_LAST_LINE else '' # Column has been "fixed" since 3.2.4 and 3.3.1 -- cgit v1.2.1