Commit 0b9e3a54 authored by Eric Smith's avatar Eric Smith

Improved test for a deprecation warning.

parent 51ae4921
......@@ -21,8 +21,7 @@ class FormatDeprecationTests(unittest.TestCase):
c_double(10.0))
self.assertEqual(buf.value, '+10.0000000000')
self.assertEqual(str(w.message), 'PyOS_ascii_formatd is deprecated, '
'use PyOS_double_to_string instead')
self.assertEqual(w.category, DeprecationWarning)
class FormatTests(unittest.TestCase):
# ensure that, for the restricted set of format codes,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment