Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 45228ca

Browse files
committed
Repaired optimistic comment in new test.
1 parent 2484aae commit 45228ca

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Lib/test/test_descr.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3185,7 +3185,7 @@ def __getitem__(self, x):
31853185

31863186
def subtype_resurrection():
31873187
if verbose:
3188-
print "Testing resurrection of new-style instance."
3188+
print "Testing resurrection of new-style instance..."
31893189

31903190
class C(object):
31913191
container = []
@@ -3196,9 +3196,8 @@ def __del__(self):
31963196

31973197
c = C()
31983198
c.attr = 42
3199-
# The only interesting thing here is whether this blows up in a
3200-
# debug build, due to flawed GC tracking logic in typeobject.c's
3201-
# call_finalizer() (a 2.2.1 bug).
3199+
# The only interesting thing here is whether this blows up, due to flawed
3200+
# GC tracking logic in typeobject.c's call_finalizer() (a 2.2.1 bug).
32023201
del c
32033202
del C.container[-1] # resurrect it again for the heck of it
32043203
vereq(C.container[-1].attr, 42)

0 commit comments

Comments
 (0)