mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Improved test for a deprecation warning.
This commit is contained in:
parent
51ae4921b3
commit
0b9e3a5423
1 changed files with 1 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue