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 ncoghlan
Recipients amaury.forgeotdarc, brett.cannon, eric.snow, georg.brandl, ncoghlan, pitrou
Date 2012年07月29日.09:07:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343552852.35.0.682584375061.issue15425@psf.upfronthosting.co.za>
In-reply-to
Content
OK, to investigate the failures a bit further, I turned off the traceback suppression altogether by sticking an immediate return at the start of remove_importlib_frames. For the three failing tests, this is what I got when adding a traceback.print_tb call:
test_broken_from (test.test_import.ImportTracebackTests) ... File "/home/ncoghlan/devel/py3k/Lib/test/test_import.py", line 890, in test_broken_from
 from _parent_foo import bar
 File "<frozen importlib._bootstrap>", line 1572, in _handle_fromlist
 File "<frozen importlib._bootstrap>", line 1524, in _find_and_load
 File "<frozen importlib._bootstrap>", line 1491, in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 571, in _check_name_wrapper
 File "<frozen importlib._bootstrap>", line 1002, in load_module
 File "<frozen importlib._bootstrap>", line 983, in load_module
 File "<frozen importlib._bootstrap>", line 547, in module_for_loader_wrapper
 File "<frozen importlib._bootstrap>", line 853, in _load_module
 File "<frozen importlib._bootstrap>", line 860, in _exec_module
 File "./_parent_foo/bar.py", line 1, in <module>
 1/0
FAIL
test_broken_parent (test.test_import.ImportTracebackTests) ... File "/home/ncoghlan/devel/py3k/Lib/test/test_import.py", line 902, in test_broken_parent
 import _parent_foo.bar
 File "<frozen importlib._bootstrap>", line 1524, in _find_and_load
 File "<frozen importlib._bootstrap>", line 1475, in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 1524, in _find_and_load
 File "<frozen importlib._bootstrap>", line 1491, in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 571, in _check_name_wrapper
 File "<frozen importlib._bootstrap>", line 1002, in load_module
 File "<frozen importlib._bootstrap>", line 983, in load_module
 File "<frozen importlib._bootstrap>", line 547, in module_for_loader_wrapper
 File "<frozen importlib._bootstrap>", line 853, in _load_module
 File "<frozen importlib._bootstrap>", line 860, in _exec_module
 File "./_parent_foo/__init__.py", line 1, in <module>
 1/0
FAIL
test_syntax_error (test.test_import.ImportTracebackTests) ... File "/home/ncoghlan/devel/py3k/Lib/test/test_import.py", line 851, in test_syntax_error
 import foo
 File "<frozen importlib._bootstrap>", line 1524, in _find_and_load
 File "<frozen importlib._bootstrap>", line 1491, in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 571, in _check_name_wrapper
 File "<frozen importlib._bootstrap>", line 1002, in load_module
 File "<frozen importlib._bootstrap>", line 983, in load_module
 File "<frozen importlib._bootstrap>", line 547, in module_for_loader_wrapper
 File "<frozen importlib._bootstrap>", line 838, in _load_module
 File "<frozen importlib._bootstrap>", line 960, in get_code
FAIL
And here's what I get with my patched version enabled (which also ignores chunks ending with get_code when the failure is a syntax error):
test_broken_from (test.test_import.ImportTracebackTests) ... File "/home/ncoghlan/devel/py3k/Lib/test/test_import.py", line 890, in test_broken_from
 from _parent_foo import bar
 File "<frozen importlib._bootstrap>", line 1572, in _handle_fromlist
 File "./_parent_foo/bar.py", line 1, in <module>
 1/0
FAIL
test_broken_parent (test.test_import.ImportTracebackTests) ... File "/home/ncoghlan/devel/py3k/Lib/test/test_import.py", line 902, in test_broken_parent
 import _parent_foo.bar
 File "<frozen importlib._bootstrap>", line 1524, in _find_and_load
 File "<frozen importlib._bootstrap>", line 1475, in _find_and_load_unlocked
 File "./_parent_foo/__init__.py", line 1, in <module>
 1/0
FAIL
test_syntax_error (test.test_import.ImportTracebackTests) ... File "/home/ncoghlan/devel/py3k/Lib/test/test_import.py", line 851, in test_syntax_error
 import foo
FAIL
History
Date User Action Args
2012年07月29日 09:07:32ncoghlansetrecipients: + ncoghlan, brett.cannon, georg.brandl, amaury.forgeotdarc, pitrou, eric.snow
2012年07月29日 09:07:32ncoghlansetmessageid: <1343552852.35.0.682584375061.issue15425@psf.upfronthosting.co.za>
2012年07月29日 09:07:31ncoghlanlinkissue15425 messages
2012年07月29日 09:07:31ncoghlancreate

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