[issue18706] test failure in test_codeccallbacks

2013-08-16 Thread Eric Snow
Eric Snow added the comment: Regarding this: >>> def f(): ... import html.entities ... del sys.modules['html'] ... >>> f() >>> import html.entities >>> html.entities Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'entities' Thi

[issue18706] test failure in test_codeccallbacks

2013-08-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue18706] test failure in test_codeccallbacks

2013-08-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset dab790a17c4d by Serhiy Storchaka in branch '3.3': Issue #18706: Fix a test for issue #18681 so it no longer breaks test_codeccallbacks*. http://hg.python.org/cpython/rev/dab790a17c4d New changeset 1f4aed2c914c by Serhiy Storchaka in branch 'default

[issue18706] test failure in test_codeccallbacks

2013-08-11 Thread Ezio Melotti
Ezio Melotti added the comment: > My preference goes to Serhiy's fix for test_imp. Fair enough. Serhiy do you want to commit your fix? > Note that the import machinery oddity would deserve fixing too > (in a separate issue perhaps ?). This should be a separate issue. --

[issue18706] test failure in test_codeccallbacks

2013-08-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: My preference goes to Serhiy's fix for test_imp. Note that the import machinery oddity would deserve fixing too (in a separate issue perhaps ?). -- ___ Python tracker

[issue18706] test failure in test_codeccallbacks

2013-08-11 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file31230/issue18706.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue18706] test failure in test_codeccallbacks

2013-08-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps `del sys.modules['module']` should remove all 'module.submodule' from sys.modules. Or perhaps `import module.submodule` should ensure that 'module' is in sys.modules and has the 'submodule' attribute. Ezio, seems you forgot to attach a patch. --

[issue18706] test failure in test_codeccallbacks

2013-08-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Perhaps import machinery should be fixed instead of tests. Yes, the import machinery is acting weird here. -- ___ Python tracker ___

[issue18706] test failure in test_codeccallbacks

2013-08-11 Thread Ezio Melotti
Ezio Melotti added the comment: > ./python -m test -v test_codecencodings_kr test_imp test_codeccallbacks Thanks, I was trying to reproduce the failure yesterday with test_imp test_codeccallbacks but it wasn't working -- now I can reproduce it. My idea was to import html and html.parser and th

[issue18706] test failure in test_codeccallbacks

2013-08-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: However it looks weird: >>> def f(): ... import html.entities ... del sys.modules['html'] ... >>> f() >>> import html.entities >>> html.entities Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute

[issue18706] test failure in test_codeccallbacks

2013-08-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are two ways to fix this issue -- one change test_imp.py and other change test_codeccallbacks.py. The proposed patch contains both. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file31228/issue18706.pa

[issue18706] test failure in test_codeccallbacks

2013-08-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue18706] test failure in test_codeccallbacks

2013-08-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Failure is intermittent. The only related lines in test_codeccallbacks are 002: import html.entities 102:l.append("&%s;" % html.entities.codepoint2name[ord(c)]) -- nosy: +terry.reedy ___ Python tracker

[issue18706] test failure in test_codeccallbacks

2013-08-10 Thread Antoine Pitrou
New submission from Antoine Pitrou: Since issue #18681, the following test sequence fails: ./python -m test -v test_codecencodings_kr test_imp test_codeccallbacks [...] == ERROR: test_xmlcharnamereplace (test.test_codeccallbac