diff options
author | Steven Myint <git@stevenmyint.com> | 2017-09-12 21:00:25 -0700 |
---|---|---|
committer | Steven Myint <git@stevenmyint.com> | 2017-09-12 21:04:55 -0700 |
commit | 86a8ae13d06e7e5612616df4d87760df3fac7879 (patch) | |
tree | de3b7f2d3665805eaf06b21d4f291a20c9494dac | |
parent | d2af071c84344de2aa633c1f314ef6cfe6c9515f (diff) | |
download | pyflakes-pypy3.tar.gz |
Skip a test under PyPy that varies on versionpypy3
-rw-r--r-- | pyflakes/test/test_api.py | 8 |
1 files changed, 1 insertions, 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 |