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
a29ac452
Commit
a29ac452
authored
May 17, 2013
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reset __class__, so multiple runs don't fail (closes #17999)
parent
2f6fe518
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Lib/test/test_super.py
Lib/test/test_super.py
+5
-0
No files found.
Lib/test/test_super.py
View file @
a29ac452
...
...
@@ -44,6 +44,11 @@ class G(A):
class
TestSuper
(
unittest
.
TestCase
):
def
tearDown
(
self
):
# This fixes the damage that test_various___class___pathologies does.
nonlocal
__class__
__class__
=
TestSuper
def
test_basics_working
(
self
):
self
.
assertEqual
(
D
().
f
(),
'ABCD'
)
...
...
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