Author: aaugustin
Date: 2012-01-27 14:25:44 -0800 (Fri, 27 Jan 2012)
New Revision: 17398

Modified:
   django/trunk/django/utils/unittest/case.py
Log:
Fixed #15828 -- Removed explicit implementation of empty setUp / tearDown 
methods. Backport of http://hg.python.org/unittest2/rev/3d33f92496fa.


Modified: django/trunk/django/utils/unittest/case.py
===================================================================
--- django/trunk/django/utils/unittest/case.py  2012-01-26 15:00:57 UTC (rev 
17397)
+++ django/trunk/django/utils/unittest/case.py  2012-01-27 22:25:44 UTC (rev 
17398)
@@ -241,9 +241,6 @@
         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 @@
     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
 

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to