[Python-checkins] cpython (2.7): Fix deprecation warnings in test_unittest.

ezio.melotti python-checkins at python.org
Mon May 9 04:58:27 CEST 2011


http://hg.python.org/cpython/rev/8e60c3fe21f6
changeset:   69953:8e60c3fe21f6
branch:      2.7
parent:      69949:85fb264b5922
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Mon May 09 05:58:17 2011 +0300
summary:
  Fix deprecation warnings in test_unittest.

files:
  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
--- a/Lib/unittest/test/test_result.py
+++ b/Lib/unittest/test/test_result.py
@@ -503,7 +503,7 @@
         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 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 Module(object):
             @staticmethod
             def setUpModule():
-                1/0
+                1//0
 
         Foo.__module__ = 'Module'
         sys.modules['Module'] = Module
@@ -553,7 +553,7 @@
         class Module(object):
             @staticmethod
             def tearDownModule():
-                1/0
+                1//0
 
         Foo.__module__ = 'Module'
         sys.modules['Module'] = Module

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list