diff options
author | Georg Brandl <georg@python.org> | 2011-02-20 11:18:09 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-02-20 11:18:09 (GMT) |
commit | 2cebdd48657546bc89dd96e85210d3b56b302e8f (patch) | |
tree | 160598cdd73a3152750a1fcb9fe1eb3efbcfa9f6 /Lib/unittest/test/_test_warnings.py | |
parent | fa2c61a22279f286e6e3abee0581fe66eb812737 (diff) | |
download | cpython-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.py | 7 |
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) |