summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/test/_test_warnings.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-02-20 11:18:09 (GMT)
committerGeorg Brandl <georg@python.org>2011-02-20 11:18:09 (GMT)
commit2cebdd48657546bc89dd96e85210d3b56b302e8f (patch)
tree160598cdd73a3152750a1fcb9fe1eb3efbcfa9f6 /Lib/unittest/test/_test_warnings.py
parentfa2c61a22279f286e6e3abee0581fe66eb812737 (diff)
downloadcpython-2cebdd48657546bc89dd96e85210d3b56b302e8f.zip
cpython-2cebdd48657546bc89dd96e85210d3b56b302e8f.tar.gz
cpython-2cebdd48657546bc89dd96e85210d3b56b302e8f.tar.bz2
Remove unittest methods scheduled for removal in 3.3 -- makes the unittest test suite pass again.
Diffstat (limited to 'Lib/unittest/test/_test_warnings.py')
-rw-r--r--Lib/unittest/test/_test_warnings.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/unittest/test/_test_warnings.py b/Lib/unittest/test/_test_warnings.py
index d0be18d..bfabb02 100644
--- a/Lib/unittest/test/_test_warnings.py
+++ b/Lib/unittest/test/_test_warnings.py
@@ -19,17 +19,12 @@ def warnfun():
warnings.warn('rw', RuntimeWarning)
class TestWarnings(unittest.TestCase):
- # unittest warnings will be printed at most once per type (max one message
- # for the fail* methods, and one for the assert* methods)
+ # unittest warnings will be printed at most once per type
def test_assert(self):
self.assertEquals(2+2, 4)
self.assertEquals(2*2, 4)
self.assertEquals(2**2, 4)
- def test_fail(self):
- self.failUnless(1)
- self.failUnless(True)
-
def test_other_unittest(self):
self.assertAlmostEqual(2+2, 4)
self.assertNotAlmostEqual(4+4, 2)