summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2009-10-31 17:08:48 (GMT)
committerEric Smith <eric@trueblade.com>2009-10-31 17:08:48 (GMT)
commit1bfa799b42e9d764af202d6ab500e2f9905aaaa8 (patch)
treee4b8da81d5eb7f79ad1cbf05c60677dffce56839 /Lib
parent08efa0489bc750fff47bf8bf9c5efe6046a20065 (diff)
downloadcpython-1bfa799b42e9d764af202d6ab500e2f9905aaaa8.zip
cpython-1bfa799b42e9d764af202d6ab500e2f9905aaaa8.tar.gz
cpython-1bfa799b42e9d764af202d6ab500e2f9905aaaa8.tar.bz2
Merged revisions 75995 via svnmerge from
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. ........
Diffstat (limited to 'Lib')
-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 eaf52c4..f61bc85 100644
--- a/Lib/test/test_ascii_formatd.py
+++ b/Lib/test/test_ascii_formatd.py
@@ -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,