[Python-checkins] r73190 - python/trunk/Lib/test/test_pep352.py
georg.brandl
python-checkins at python.org
Thu Jun 4 01:23:45 CEST 2009
Author: georg.brandl
Date: Thu Jun 4 01:23:45 2009
New Revision: 73190
Log:
Avoid PendingDeprecationWarnings by using deprecated unittest methods.
Modified:
python/trunk/Lib/test/test_pep352.py
Modified: python/trunk/Lib/test/test_pep352.py
==============================================================================
--- python/trunk/Lib/test/test_pep352.py (original)
+++ python/trunk/Lib/test/test_pep352.py Thu Jun 4 01:23:45 2009
@@ -26,7 +26,7 @@
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 @@
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):
More information about the Python-checkins
mailing list