From 3ae585b44977d0753a5e5f142b790716d6939258 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Tue, 20 Aug 2013 04:01:42 -0400 Subject: [PATCH] [1.6.x] Fixed a test failure introduced in f0bc2865ff. `classobj` objects cannot be weakly referenced on Python 2.6 --- tests/dispatch/tests/test_dispatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dispatch/tests/test_dispatcher.py b/tests/dispatch/tests/test_dispatcher.py index 2586aeee62..b5edf2867d 100644 --- a/tests/dispatch/tests/test_dispatcher.py +++ b/tests/dispatch/tests/test_dispatcher.py @@ -80,7 +80,7 @@ class DispatcherTests(unittest.TestCase): Make sure signal caching sender receivers don't prevent garbage collection of senders. """ - class sender: + class sender(object): pass wref = weakref.ref(sender) d_signal.connect(receiver_1_arg)