From 1d54e3a95676e04ef3bcf7a251ba5a425d7e583f Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Fri, 27 Jan 2012 22:25:44 +0000 Subject: [PATCH] Fixed #15828 -- Removed explicit implementation of empty setUp / tearDown methods. Backport of http://hg.python.org/unittest2/rev/3d33f92496fa. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17398 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/utils/unittest/case.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/django/utils/unittest/case.py b/django/utils/unittest/case.py index 78507c1917b..f906a4cb686 100644 --- a/django/utils/unittest/case.py +++ b/django/utils/unittest/case.py @@ -241,9 +241,6 @@ class TestCase(unittest.TestCase): Cleanup items are called even if setUp fails (unlike tearDown).""" self._cleanups.append((function, args, kwargs)) - def setUp(self): - "Hook method for setting up the test fixture before exercising it." - @classmethod def setUpClass(cls): "Hook method for setting up class fixture before running tests in the class." @@ -252,9 +249,6 @@ class TestCase(unittest.TestCase): def tearDownClass(cls): "Hook method for deconstructing the class fixture after running all tests in the class." - def tearDown(self): - "Hook method for deconstructing the test fixture after testing it." - def countTestCases(self): return 1