]> granicus.if.org Git - python/commitdiff
Merged revisions 75995 via svnmerge from
authorEric Smith <eric@trueblade.com>
Sat, 31 Oct 2009 17:08:48 +0000 (17:08 +0000)
committerEric Smith <eric@trueblade.com>
Sat, 31 Oct 2009 17:08:48 +0000 (17:08 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75995 | eric.smith | 2009-10-31 13:07:17 -0400 (Sat, 31 Oct 2009) | 1 line

  Improved test for a deprecation warning.
........

Lib/test/test_ascii_formatd.py

index eaf52c4da0b0806313ea8a9ae2ebbab9da0b1a70..f61bc858cce536910d151816c71f39edd440fac0 100644 (file)
@@ -20,8 +20,7 @@ class FormatDeprecationTests(unittest.TestCase):
                                c_double(10.0))
             self.assertEqual(buf.value, b'+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,