homepage

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 Marc.Abramowitz
Recipients Marc.Abramowitz, Ronan.Lamy, brett.cannon, jcea, pitrou
Date 2012年06月27日.05:36:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340775418.26.0.951147292631.issue15030@psf.upfronthosting.co.za>
In-reply-to
Content
Attaching a patch...
Using Ronan's test_PyPyc.diff, before my patch:
{{{
~/dev/hg-repos/cpython$ ./python.exe -m unittest Lib/importlib/test/source/test_abc_loader.py 
...........................................E..................
======================================================================
ERROR: test_pyc_compatibility (Lib.importlib.test.source.test_abc_loader.RegeneratedBytecodeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "./Lib/importlib/test/source/util.py", line 23, in wrapper
 to_return = fxn(*args, **kwargs)
 File "./Lib/importlib/test/source/test_abc_loader.py", line 473, in test_pyc_compatibility
 mock.load_module(name)
 File "<frozen importlib._bootstrap>", line 760, in load_module
 File "<frozen importlib._bootstrap>", line 408, in module_for_loader_wrapper
 File "<frozen importlib._bootstrap>", line 636, in _load_module
 File "./Lib/importlib/test/source/test_abc_loader.py", line 201, in get_code
 code_object = super().get_code(name)
 File "/Users/marca/dev/hg-repos/cpython/Lib/importlib/abc.py", line 305, in get_code
 return marshal.loads(bytecode)
ValueError: bad marshal data (unknown type code)
----------------------------------------------------------------------
Ran 62 tests in 0.076s
FAILED (errors=1)
[114118 refs]
}}}
After my patch:
{{{
~/dev/hg-repos/cpython$ patch -p1 < ~/Desktop/cpython-issue-15030.patch 
patching file Lib/importlib/abc.py
~/dev/hg-repos/cpython$ ./python.exe -m unittest Lib/importlib/test/source/test_abc_loader.py 
..............................................................
----------------------------------------------------------------------
Ran 62 tests in 0.079s
OK
[114118 refs]
}}}
History
Date User Action Args
2012年06月27日 05:36:58Marc.Abramowitzsetrecipients: + Marc.Abramowitz, brett.cannon, jcea, pitrou, Ronan.Lamy
2012年06月27日 05:36:58Marc.Abramowitzsetmessageid: <1340775418.26.0.951147292631.issue15030@psf.upfronthosting.co.za>
2012年06月27日 05:36:57Marc.Abramowitzlinkissue15030 messages
2012年06月27日 05:36:56Marc.Abramowitzcreate

AltStyle によって変換されたページ (->オリジナル) /