diff options
author | Georg Brandl <georg@python.org> | 2009-06-03 23:23:45 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-06-03 23:23:45 (GMT) |
commit | 19e79f79ce18febb840df33df93d44c4a1215ad4 (patch) | |
tree | 493b9acfe39db342af2a226c2aa1b7a4eee4bc18 /Lib/test | |
parent | 0eca77c40c2636d1f0824fc5bd37f0645e31b014 (diff) | |
download | cpython-19e79f79ce18febb840df33df93d44c4a1215ad4.zip cpython-19e79f79ce18febb840df33df93d44c4a1215ad4.tar.gz cpython-19e79f79ce18febb840df33df93d44c4a1215ad4.tar.bz2 |
Avoid PendingDeprecationWarnings emitted by deprecated unittest methods.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_pep352.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_pep352.py b/Lib/test/test_pep352.py index e335528..5f578d2 100644 --- a/Lib/test/test_pep352.py +++ b/Lib/test/test_pep352.py @@ -26,7 +26,7 @@ class ExceptionClassTests(unittest.TestCase): ignore_message_warning() for attr in ("args", "message", "__str__", "__repr__", "__getitem__"): - self.failUnless(hasattr(ins, attr), + self.assertTrue(hasattr(ins, attr), "%s missing %s attribute" % (ins.__class__.__name__, attr)) @@ -88,7 +88,7 @@ class ExceptionClassTests(unittest.TestCase): def interface_test_driver(self, results): for test_name, (given, expected) in zip(self.interface_tests, results): - self.failUnlessEqual(given, expected, "%s: %s != %s" % (test_name, + self.assertEqual(given, expected, "%s: %s != %s" % (test_name, given, expected)) def test_interface_single_arg(self): |