Fix the dispatch tests on python 2.5
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16977 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d362c1546f
commit
b7845768cb
|
@ -4,5 +4,5 @@ Unit-tests for the dispatch project
|
||||||
|
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from .test_saferef import *
|
from .test_dispatcher import DispatcherTests
|
||||||
from .test_dispatcher import *
|
from .test_saferef import SaferefTests
|
||||||
|
|
|
@ -116,9 +116,3 @@ class DispatcherTests(unittest.TestCase):
|
||||||
garbage_collect()
|
garbage_collect()
|
||||||
a_signal.disconnect(receiver_3)
|
a_signal.disconnect(receiver_3)
|
||||||
self._testIsClean(a_signal)
|
self._testIsClean(a_signal)
|
||||||
|
|
||||||
def getSuite():
|
|
||||||
return unittest.makeSuite(DispatcherTests,'test')
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
unittest.main()
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ class Test2(object):
|
||||||
def __call__(self, obj):
|
def __call__(self, obj):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class Tester(unittest.TestCase):
|
class SaferefTests(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
ts = []
|
ts = []
|
||||||
ss = []
|
ss = []
|
||||||
|
@ -71,9 +71,3 @@ class Tester(unittest.TestCase):
|
||||||
def _closure(self, ref):
|
def _closure(self, ref):
|
||||||
"""Dumb utility mechanism to increment deletion counter"""
|
"""Dumb utility mechanism to increment deletion counter"""
|
||||||
self.closureCount +=1
|
self.closureCount +=1
|
||||||
|
|
||||||
def getSuite():
|
|
||||||
return unittest.makeSuite(Tester,'test')
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
unittest.main()
|
|
||||||
|
|
Loading…
Reference in New Issue