This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author doko
Recipients brett.cannon, doko, eric.snow, ncoghlan
Date 2018-07-31.03:18:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533007091.73.0.56676864532.issue34286@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-07-31 03:18:11dokosetrecipients: + doko, brett.cannon, ncoghlan, eric.snow
2018-07-31 03:18:11dokosetmessageid: <1533007091.73.0.56676864532.issue34286@psf.upfronthosting.co.za>
2018-07-31 03:18:11dokolinkissue34286 messages
2018-07-31 03:18:10dokocreate