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
45228ca8
Commit
45228ca8
authored
Jul 11, 2002
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Repaired optimistic comment in new test.
parent
2484aaea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Lib/test/test_descr.py
Lib/test/test_descr.py
+3
-4
No files found.
Lib/test/test_descr.py
View file @
45228ca8
...
@@ -3185,7 +3185,7 @@ def slices():
...
@@ -3185,7 +3185,7 @@ def slices():
def
subtype_resurrection
():
def
subtype_resurrection
():
if
verbose
:
if
verbose
:
print
"Testing resurrection of new-style instance."
print
"Testing resurrection of new-style instance.
..
"
class
C
(
object
):
class
C
(
object
):
container
=
[]
container
=
[]
...
@@ -3196,9 +3196,8 @@ def subtype_resurrection():
...
@@ -3196,9 +3196,8 @@ def subtype_resurrection():
c
=
C
()
c
=
C
()
c
.
attr
=
42
c
.
attr
=
42
# The only interesting thing here is whether this blows up in a
# The only interesting thing here is whether this blows up, due to flawed
# debug build, due to flawed GC tracking logic in typeobject.c's
# GC tracking logic in typeobject.c's call_finalizer() (a 2.2.1 bug).
# call_finalizer() (a 2.2.1 bug).
del
c
del
c
del
C
.
container
[
-
1
]
# resurrect it again for the heck of it
del
C
.
container
[
-
1
]
# resurrect it again for the heck of it
vereq
(
C
.
container
[
-
1
].
attr
,
42
)
vereq
(
C
.
container
[
-
1
].
attr
,
42
)
...
...
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