[Python-checkins] r87647 - python/branches/py3k-cdecimal/Lib/test/decimal_tests.py
stefan.krah
python-checkins at python.org
Sun Jan 2 21:46:43 CET 2011
Author: stefan.krah
Date: Sun Jan 2 21:46:43 2011
New Revision: 87647
Log:
Fix deprecation warning.
Modified:
python/branches/py3k-cdecimal/Lib/test/decimal_tests.py
Modified: python/branches/py3k-cdecimal/Lib/test/decimal_tests.py
==============================================================================
--- python/branches/py3k-cdecimal/Lib/test/decimal_tests.py (original)
+++ python/branches/py3k-cdecimal/Lib/test/decimal_tests.py Sun Jan 2 21:46:43 2011
@@ -488,7 +488,7 @@
if id in cdecimal_result_diff: # XXX
t = cdecimal_result_diff[id]
- self.assert_(result == t[0] and ans == t[1])
+ self.assertTrue(result == t[0] and ans == t[1])
else:
self.assertEqual(result, ans,
'Incorrect answer for ' + s + ' -- got ' + result)
More information about the Python-checkins
mailing list