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 .test_saferef import *
|
||||
from .test_dispatcher import *
|
||||
from .test_dispatcher import DispatcherTests
|
||||
from .test_saferef import SaferefTests
|
||||
|
|
|
@ -116,9 +116,3 @@ class DispatcherTests(unittest.TestCase):
|
|||
garbage_collect()
|
||||
a_signal.disconnect(receiver_3)
|
||||
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):
|
||||
pass
|
||||
|
||||
class Tester(unittest.TestCase):
|
||||
class SaferefTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
ts = []
|
||||
ss = []
|
||||
|
@ -71,9 +71,3 @@ class Tester(unittest.TestCase):
|
|||
def _closure(self, ref):
|
||||
"""Dumb utility mechanism to increment deletion counter"""
|
||||
self.closureCount +=1
|
||||
|
||||
def getSuite():
|
||||
return unittest.makeSuite(Tester,'test')
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
Loading…
Reference in New Issue