Message322714
running the lib2to3 tests from an installed location, I see the following failures on the 3.7 branch:
======================================================================
FAIL: test (lib2to3.tests.test_fixers.Test_reload)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.7/lib2to3/tests/test_fixers.py", line 294, in test
self.check(b, a)
File "/usr/lib/python3.7/lib2to3/tests/test_fixers.py", line 36, in check
tree = self._check(before, after)
File "/usr/lib/python3.7/lib2to3/tests/test_fixers.py", line 32, in _check
self.assertEqual(after, str(tree))
AssertionError: 'import importlib\nimportlib.reload(a)\n\n' != 'import imp\nimp.reload(a)\n\n'
- import importlib
? ------
+ import imp
- importlib.reload(a)
? ------
+ imp.reload(a)
======================================================================
FAIL: test_comment (lib2to3.tests.test_fixers.Test_reload)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.7/lib2to3/tests/test_fixers.py", line 299, in test_comment
self.check(b, a)
File "/usr/lib/python3.7/lib2to3/tests/test_fixers.py", line 36, in check
tree = self._check(before, after)
File "/usr/lib/python3.7/lib2to3/tests/test_fixers.py", line 32, in _check
self.assertEqual(after, str(tree))
AssertionError: 'import importlib\nimportlib.reload( a ) # comment\n\n' != 'import imp\nimp.reload( a ) # comment\n\n'
- import importlib
? ------
+ import imp
- importlib.reload( a ) # comment
? ------
+ imp.reload( a ) # comment
======================================================================
FAIL: test_space (lib2to3.tests.test_fixers.Test_reload)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.7/lib2to3/tests/test_fixers.py", line 309, in test_space
self.check(b, a)
File "/usr/lib/python3.7/lib2to3/tests/test_fixers.py", line 36, in check
tree = self._check(before, after)
File "/usr/lib/python3.7/lib2to3/tests/test_fixers.py", line 32, in _check
self.assertEqual(after, str(tree))
AssertionError: 'import importlib\nimportlib.reload( a )\n\n' != 'import imp\nimp.reload( a )\n\n'
- import importlib
? ------
+ import imp
- importlib.reload( a )
? ------
+ imp.reload( a )
----------------------------------------------------------------------
Ran 650 tests in 27.363s
FAILED (failures=3)
test test_lib2to3 failed
1 test failed again:
test_lib2to3
== Tests result: FAILURE then FAILURE ==
390 tests OK.
1 test failed:
test_lib2to3 |
|
Date |
User |
Action |
Args |
2018-07-31 03:18:11 | doko | set | recipients:
+ doko, brett.cannon, ncoghlan, eric.snow |
2018-07-31 03:18:11 | doko | set | messageid: <1533007091.73.0.56676864532.issue34286@psf.upfronthosting.co.za> |
2018-07-31 03:18:11 | doko | link | issue34286 messages |
2018-07-31 03:18:10 | doko | create | |
|