[New-bugs-announce] [issue34286] lib2to3 tests fail on the 3.7 branch (used to work with 3.7.0)

Matthias Klose report at bugs.python.org
Mon Jul 30 23:18:11 EDT 2018


New submission from Matthias Klose <doko at debian.org>:

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

----------
components: Library (Lib)
keywords: 3.7regression
messages: 322714
nosy: brett.cannon, doko, eric.snow, ncoghlan
priority: normal
severity: normal
status: open
title: lib2to3 tests fail on the 3.7 branch (used to work with 3.7.0)

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34286>
_______________________________________


More information about the New-bugs-announce mailing list