Skip to content

Commit

Permalink
Remove whitespace, add a bug reference
Browse files Browse the repository at this point in the history
svn path=/trunk/; revision=659
  • Loading branch information
Johan Dahlin committed Apr 30, 2007
1 parent a0f7e83 commit 5c90755
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_subtype.py
Expand Up @@ -155,7 +155,7 @@ def testGhostTwice(self):
box.destroy()
del box
self.assertEqual(bref(), None)

def testGhostWeakref(self):
b = gtk.Button()
bref = b.weak_ref()
Expand Down Expand Up @@ -213,7 +213,7 @@ def cb(self, *args):
pass
a = b.child
#print "__dict__3: refcount=%i id=%i" % (sys.getrefcount(a.__dict__), id(a.__dict__))

self.assert_(hasattr(a, 'd'))
self.assert_(hasattr(a, 'foo'))
self.assertEqual(a.foo, "hello")
Expand All @@ -223,7 +223,7 @@ def testSimpleDecref(self):
class CallInDel:
def __init__(self, callback):
self.callback = callback

def __del__(self):
if callable(self.callback):
self.callback()
Expand All @@ -236,6 +236,7 @@ def on_dispose():
assert len(disposed_calls) == 1

def testDescriptor(self):
# Test for bug #434659
class GProperty(object):
def __set__(self, instance, value):
pass
Expand Down

0 comments on commit 5c90755

Please sign in to comment.