diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2020-12-11 12:55:56 -0300 |
---|---|---|
committer | Bruno Oliveira <nicoddemus@gmail.com> | 2020-12-11 12:57:23 -0300 |
commit | fef9a32a8578e9c467f6ef8ccc7bce81b89496a4 (patch) | |
tree | f4f947231ef497cb99073f4ff04006573ec83b67 | |
parent | 4a694b00a68de2d93b547c2704da4283a375a53c (diff) | |
download | py-fef9a32a8578e9c467f6ef8ccc7bce81b89496a4.tar.gz |
Adapt test
-rw-r--r-- | testing/code/test_source.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/code/test_source.py b/testing/code/test_source.py index 3492761a..caba34b8 100644 --- a/testing/code/test_source.py +++ b/testing/code/test_source.py @@ -103,7 +103,7 @@ def test_source_strip_multiline(): def test_syntaxerror_rerepresentation(): ex = py.test.raises(SyntaxError, py.code.compile, 'xyz xyz') assert ex.value.lineno == 1 - assert ex.value.offset in (4,7) # XXX pypy/jython versus cpython? + assert ex.value.offset in (5, 7) # pypy/cpython difference assert ex.value.text.strip(), 'x x' def test_isparseable(): |