| Summary: | dev-python/pyflakes-1.2.3 fails test_invalidEscape test with dev-python/pypy3-5.7.1-r1 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Paolo Pedroni <paolo.pedroni> |
| Component: | Current packages | Assignee: | Python Gentoo Team <python> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | alexey+gentoo, jstein |
| Priority: | Normal | Keywords: | TESTFAILURE |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | pyflakes-1.2.3:20170508-120100.log.gz | ||
|
Description
Paolo Pedroni
2017-05-08 12:38:01 UTC
Sorry, I pasted a log from pyflakes-1.5.0. the right one is as follows (the error is the same, though):
* pypy3: running distutils-r1_run_phase python_test
/usr/bin/pypy3 setup.py test --quiet
running test
running egg_info
writing pyflakes.egg-info/PKG-INFO
writing dependency_links to pyflakes.egg-info/dependency_links.txt
writing entry points to pyflakes.egg-info/entry_points.txt
writing top-level names to pyflakes.egg-info/top_level.txt
reading manifest file 'pyflakes.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pyflakes.egg-info/SOURCES.txt'
running build_ext
......F................................................................s..........ss..s.........s.s..................s...s.........
....s...............................s.................................................................s............................
..s...s.............s...............................s...................................................s................s......s..
.........................................s..........ss..s.........s.s.sss..................s................s......s...............
..................s......s....................
======================================================================
FAIL: test_invalidEscape (pyflakes.test.test_api.CheckTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pyflakes-1.2.3/work/pyflakes-1.2.3/pyflakes/test/test_api.py", line 482, in test_invalidEscape
sourcePath, [decoding_error])
File "/var/tmp/portage/dev-python/pyflakes-1.2.3/work/pyflakes-1.2.3/pyflakes/test/test_api.py", line 287, in assertHasErrors
(count, err.getvalue()), (len(errorList), ''.join(errorList)))
AssertionError: Tuples differ: (1, "[60 chars]1:6: (unicode error) 'unicodeescape' codec can[77 chars]^\n") != (1, "[60 chars]1:6:
UnicodeDecodeError: ('unicodeescape', b'\[64 chars]^\n")
First differing element 1:
"/var[56 chars]1:6: (unicode error) 'unicodeescape' codec can[76 chars] ^\n"
"/var[56 chars]1:6: UnicodeDecodeError: ('unicodeescape', b'\[63 chars] ^\n"
(1,
- '/var/tmp/portage/dev-python/pyflakes-1.2.3/temp/tmpawl5a3zp:1:6: (unicode '
? ---------
+ '/var/tmp/portage/dev-python/pyflakes-1.2.3/temp/tmpawl5a3zp:1:6: '
- "error) 'unicodeescape' codec can't decode bytes in position 0-1: truncated "
- '\\xXX escape\n'
+ "UnicodeDecodeError: ('unicodeescape', b'\\\\xyz', 0, 2, 'truncated \\\\xXX "
+ "escape')\n"
"foo = '\\xyz'\n"
' ^\n')
----------------------------------------------------------------------
Ran 570 tests in 1.784s
FAILED (failures=1, skipped=32)
Test failed: <unittest.runner.TextTestResult run=570 errors=0 failures=1>
error: Test failed: <unittest.runner.TextTestResult run=570 errors=0 failures=1>
With pypy3-5.10.1 it also fails test_nonDefaultFollowsDefaultSyntaxError and test_nonKeywordAfterKeywordSyntaxError tests:
* pypy3: running distutils-r1_run_phase python_test
/usr/bin/pypy3 setup.py test --quiet
running test
running egg_info
writing pyflakes.egg-info/PKG-INFO
writing dependency_links to pyflakes.egg-info/dependency_links.txt
writing entry points to pyflakes.egg-info/entry_points.txt
writing top-level names to pyflakes.egg-info/top_level.txt
reading manifest file 'pyflakes.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pyflakes.egg-info/SOURCES.txt'
running build_ext
......F.....FF.........................................................s..........ss..s.........s.s..................s...s.............s...............................s.................................................................s..............................s...s.............s...............................s...................................................s................s......s...........................................s..........ss..s.........s.s.sss..................s................s......s.................................s......s....................
======================================================================
FAIL: test_invalidEscape (pyflakes.test.test_api.CheckTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pyflakes-1.2.3/work/pyflakes-1.2.3/pyflakes/test/test_api.py", line 482, in test_invalidEscape
sourcePath, [decoding_error])
File "/var/tmp/portage/dev-python/pyflakes-1.2.3/work/pyflakes-1.2.3/pyflakes/test/test_api.py", line 287, in assertHasErrors
(count, err.getvalue()), (len(errorList), ''.join(errorList)))
AssertionError: Tuples differ: (1, "[60 chars]1:6: (unicode error) 'unicodeescape' codec can[77 chars]^\n") != (1, "[60 chars]1:6: UnicodeDecodeError: ('unicodeescape', b'\[64 chars]^\n")
First differing element 1:
"/var[56 chars]1:6: (unicode error) 'unicodeescape' codec can[76 chars] ^\n"
"/var[56 chars]1:6: UnicodeDecodeError: ('unicodeescape', b'\[63 chars] ^\n"
(1,
- '/var/tmp/portage/dev-python/pyflakes-1.2.3/temp/tmp91zjafoh:1:6: (unicode '
? ---------
+ '/var/tmp/portage/dev-python/pyflakes-1.2.3/temp/tmp91zjafoh:1:6: '
- "error) 'unicodeescape' codec can't decode bytes in position 0-1: truncated "
- '\\xXX escape\n'
+ "UnicodeDecodeError: ('unicodeescape', b'\\\\xyz', 0, 2, 'truncated \\\\xXX "
+ "escape')\n"
"foo = '\\xyz'\n"
' ^\n')
======================================================================
FAIL: test_nonDefaultFollowsDefaultSyntaxError (pyflakes.test.test_api.CheckTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pyflakes-1.2.3/work/pyflakes-1.2.3/pyflakes/test/test_api.py", line 429, in test_nonDefaultFollowsDefaultSyntaxError
%s""" % (sourcePath, column, last_line)])
File "/var/tmp/portage/dev-python/pyflakes-1.2.3/work/pyflakes-1.2.3/pyflakes/test/test_api.py", line 287, in assertHasErrors
(count, err.getvalue()), (len(errorList), ''.join(errorList)))
AssertionError: Tuples differ: (1, '[57 chars]3o:1:7: non-default argument follows default a[39 chars]^\n') != (1, '[57 chars]3o:1:8: non-default argument follows default a[40 chars]^\n')
First differing element 1:
'/var[53 chars]3o:1:7: non-default argument follows default a[38 chars] ^\n'
'/var[53 chars]3o:1:8: non-default argument follows default a[39 chars] ^\n'
(1,
- '/var/tmp/portage/dev-python/pyflakes-1.2.3/temp/tmprky8_x3o:1:7: non-default '
? ^
+ '/var/tmp/portage/dev-python/pyflakes-1.2.3/temp/tmprky8_x3o:1:8: non-default '
? ^
'argument follows default argument\n'
'def foo(bar=baz, bax):\n'
- ' ^\n')
+ ' ^\n')
? +
======================================================================
FAIL: test_nonKeywordAfterKeywordSyntaxError (pyflakes.test.test_api.CheckTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/pyflakes-1.2.3/work/pyflakes-1.2.3/pyflakes/test/test_api.py", line 454, in test_nonKeywordAfterKeywordSyntaxError
%s""" % (sourcePath, column, message, last_line)])
File "/var/tmp/portage/dev-python/pyflakes-1.2.3/work/pyflakes-1.2.3/pyflakes/test/test_api.py", line 287, in assertHasErrors
(count, err.getvalue()), (len(errorList), ''.join(errorList)))
AssertionError: Tuples differ: (1, '[58 chars]0:1:12: positional argument follows keyword ar[38 chars]^\n') != (1, '[58 chars]0:1:13: positional argument follows keyword ar[39 chars]^\n')
First differing element 1:
'/var[54 chars]0:1:12: positional argument follows keyword ar[37 chars] ^\n'
'/var[54 chars]0:1:13: positional argument follows keyword ar[38 chars] ^\n'
(1,
- '/var/tmp/portage/dev-python/pyflakes-1.2.3/temp/tmpa6upnrn0:1:12: positional '
? ^
+ '/var/tmp/portage/dev-python/pyflakes-1.2.3/temp/tmpa6upnrn0:1:13: positional '
? ^
'argument follows keyword argument\n'
'foo(bar=baz, bax)\n'
- ' ^\n')
+ ' ^\n')
? +
----------------------------------------------------------------------
Ran 570 tests in 2.415s
FAILED (failures=3, skipped=32)
Test failed: <unittest.runner.TextTestResult run=570 errors=0 failures=3>
error: Test failed: <unittest.runner.TextTestResult run=570 errors=0 failures=3>
Same goes for dev-python/pyflakes-1.6.0 Old version removed. Please reopen if you can reproduce with current. |