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.

Title: test_importlib fails under -O
Type: Stage: resolved
Components: Tests Versions: Python 3.5
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2015-03-31 13:35 by brett.cannon, last changed 2022-04-11 14:58 by admin. This issue is now closed.

File name Uploaded Description Edit
issue23820.patch serhiy.storchaka, 2015-03-31 15:14 review
Messages (3)
msg239705 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2015-03-31 13:35
FAIL: test_cached_sourceless (test.test_importlib.test_spec.Frozen_ModuleSpecTests)
Traceback (most recent call last):
  File "/Users/bcannon/Repositories/cpython/default/Lib/test/test_importlib/", line 224, in test_cached_sourceless
    self.assertEqual(self.loc_spec.cached, 'spam.pyc')
AssertionError: None != 'spam.pyc'
msg239725 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-03-31 15:14
Here is a patch.
msg240739 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2015-04-13 20:31
The PEP 488 change actually fixed this.
Date User Action Args
2022-04-11 14:58:14adminsetgithub: 68008
2015-04-13 20:31:39brett.cannonsetstatus: open -> closed
resolution: out of date
messages: + msg240739

stage: patch review -> resolved
2015-03-31 15:14:11serhiy.storchakasetfiles: + issue23820.patch

nosy: + serhiy.storchaka
messages: + msg239725

keywords: + patch
stage: needs patch -> patch review
2015-03-31 13:35:35brett.cannoncreate