Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Checkins

cpython (merge 3.3 -> default): Issue #18706: Fix a test for issue #18681 so it no longer breaks

 

 

Python checkins RSS feed   Index | Next | Previous | View Threaded


python-checkins at python

Aug 11, 2013, 10:14 AM

Post #1 of 1 (7 views)
Permalink
cpython (merge 3.3 -> default): Issue #18706: Fix a test for issue #18681 so it no longer breaks

http://hg.python.org/cpython/rev/1f4aed2c914c
changeset: 85123:1f4aed2c914c
parent: 85120:eeda59e08c83
parent: 85122:dab790a17c4d
user: Serhiy Storchaka <storchaka [at] gmail>
date: Sun Aug 11 20:13:36 2013 +0300
summary:
Issue #18706: Fix a test for issue #18681 so it no longer breaks test_codeccallbacks*.

files:
Lib/test/test_imp.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py
--- a/Lib/test/test_imp.py
+++ b/Lib/test/test_imp.py
@@ -317,8 +317,9 @@
def test_with_deleted_parent(self):
# see #18681
from html import parser
- del sys.modules['html']
- def cleanup(): del sys.modules['html.parser']
+ html = sys.modules.pop('html')
+ def cleanup():
+ sys.modules['html'] = html
self.addCleanup(cleanup)
with self.assertRaisesRegex(ImportError, 'html'):
imp.reload(parser)

--
Repository URL: http://hg.python.org/cpython

Python checkins RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.