summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2009-10-31 17:07:17 (GMT)
committerEric Smith <eric@trueblade.com>2009-10-31 17:07:17 (GMT)
commit0b9e3a5423090ba2ce309ba629eb042d2932087d (patch)
tree7c25c0bff5ded1977ce31168c08c19eb0e2a5e29 /Lib/test
parent51ae4921b30ab48bd31976fc4f92345b1bd26f50 (diff)
downloadcpython-0b9e3a5423090ba2ce309ba629eb042d2932087d.zip
cpython-0b9e3a5423090ba2ce309ba629eb042d2932087d.tar.gz
cpython-0b9e3a5423090ba2ce309ba629eb042d2932087d.tar.bz2
Improved test for a deprecation warning.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_ascii_formatd.py3
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,