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
690fbeff
Commit
690fbeff
authored
Jan 24, 2008
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the tests by restoring __import__. I think the test is still valid.
parent
baf91365
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Lib/test/test_descr.py
Lib/test/test_descr.py
+6
-4
No files found.
Lib/test/test_descr.py
View file @
690fbeff
...
...
@@ -4481,7 +4481,6 @@ def test_borrowed_ref_4_segfault():
import
types
import
__builtin__
class
X
(
object
):
def
__getattr__
(
self
,
name
):
# this is called with name == '__bases__' by PyObject_IsInstance()
...
...
@@ -4498,9 +4497,12 @@ def test_borrowed_ref_4_segfault():
return
(
self
,
args
)
# make an unbound method
__builtin__
.
__import__
=
types
.
MethodType
(
Y
(),
None
,
(
pseudoclass
,
str
))
import
spam
orig_import
=
__import__
try
:
__builtin__
.
__import__
=
types
.
MethodType
(
Y
(),
None
,
(
pseudoclass
,
str
))
import
spam
finally
:
__builtin__
.
__import__
=
orig_import
def
test_main
():
#XXXweakref_segfault() # Must be first, somehow
...
...
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