Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
cd98068e
Commit
cd98068e
authored
Aug 11, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #18706: Fix a test for issue #18681 so it no longer breaks test_codeccallbacks*.
parents
a70af542
679ca6bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/test/test_imp.py
Lib/test/test_imp.py
+3
-2
No files found.
Lib/test/test_imp.py
View file @
cd98068e
...
@@ -317,8 +317,9 @@ class ReloadTests(unittest.TestCase):
...
@@ -317,8 +317,9 @@ class ReloadTests(unittest.TestCase):
def
test_with_deleted_parent
(
self
):
def
test_with_deleted_parent
(
self
):
# see #18681
# see #18681
from
html
import
parser
from
html
import
parser
del
sys
.
modules
[
'html'
]
html
=
sys
.
modules
.
pop
(
'html'
)
def
cleanup
():
del
sys
.
modules
[
'html.parser'
]
def
cleanup
():
sys
.
modules
[
'html'
]
=
html
self
.
addCleanup
(
cleanup
)
self
.
addCleanup
(
cleanup
)
with
self
.
assertRaisesRegex
(
ImportError
,
'html'
):
with
self
.
assertRaisesRegex
(
ImportError
,
'html'
):
imp
.
reload
(
parser
)
imp
.
reload
(
parser
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment