Improved test for a deprecation warning.

This commit is contained in:
Eric Smith 2009-10-31 17:07:17 +00:00
parent 51ae4921b3
commit 0b9e3a5423

View file

@ -21,8 +21,7 @@ class FormatDeprecationTests(unittest.TestCase):
c_double(10.0)) c_double(10.0))
self.assertEqual(buf.value, '+10.0000000000') self.assertEqual(buf.value, '+10.0000000000')
self.assertEqual(str(w.message), 'PyOS_ascii_formatd is deprecated, ' self.assertEqual(w.category, DeprecationWarning)
'use PyOS_double_to_string instead')
class FormatTests(unittest.TestCase): class FormatTests(unittest.TestCase):
# ensure that, for the restricted set of format codes, # ensure that, for the restricted set of format codes,