diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_ascii_formatd.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_ascii_formatd.py b/Lib/test/test_ascii_formatd.py index 3501955..5ee84fa 100644 --- a/Lib/test/test_ascii_formatd.py +++ b/Lib/test/test_ascii_formatd.py @@ -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, |