diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-05-09 02:58:17 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-05-09 02:58:17 (GMT) |
commit | 7055064bbb169d8580d7999c5bbb88251ec11409 (patch) | |
tree | 814cb7af3671381b80362c0ed96d4e5c9c77f28d | |
parent | 87b86c84ef2755d628969b024b103a538d8f57f2 (diff) | |
download | cpython-7055064bbb169d8580d7999c5bbb88251ec11409.zip cpython-7055064bbb169d8580d7999c5bbb88251ec11409.tar.gz cpython-7055064bbb169d8580d7999c5bbb88251ec11409.tar.bz2 |
Fix deprecation warnings in test_unittest.
-rw-r--r-- | Lib/unittest/test/test_result.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/unittest/test/test_result.py b/Lib/unittest/test/test_result.py index f0f3a63..eb68c1d 100644 --- a/Lib/unittest/test/test_result.py +++ b/Lib/unittest/test/test_result.py @@ -503,7 +503,7 @@ class TestOutputBuffering(unittest.TestCase): class Foo(unittest.TestCase): @classmethod def setUpClass(cls): - 1/0 + 1//0 def test_foo(self): pass suite = unittest.TestSuite([Foo('test_foo')]) @@ -517,7 +517,7 @@ class TestOutputBuffering(unittest.TestCase): class Foo(unittest.TestCase): @classmethod def tearDownClass(cls): - 1/0 + 1//0 def test_foo(self): pass suite = unittest.TestSuite([Foo('test_foo')]) @@ -534,7 +534,7 @@ class TestOutputBuffering(unittest.TestCase): class Module(object): @staticmethod def setUpModule(): - 1/0 + 1//0 Foo.__module__ = 'Module' sys.modules['Module'] = Module @@ -553,7 +553,7 @@ class TestOutputBuffering(unittest.TestCase): class Module(object): @staticmethod def tearDownModule(): - 1/0 + 1//0 Foo.__module__ = 'Module' sys.modules['Module'] = Module |