summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ascii_formatd.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_ascii_formatd.py')
-rw-r--r--Lib/test/test_ascii_formatd.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_ascii_formatd.py b/Lib/test/test_ascii_formatd.py
index 77759fe..50e7340 100644
--- a/Lib/test/test_ascii_formatd.py
+++ b/Lib/test/test_ascii_formatd.py
@@ -17,14 +17,11 @@ class FormatDeprecationTests(unittest.TestCase):
PyOS_ascii_formatd = pythonapi.PyOS_ascii_formatd
buf = create_string_buffer(' ' * 100)
- with check_warnings() as w:
- warnings.simplefilter('default')
+ with check_warnings():
PyOS_ascii_formatd(byref(buf), sizeof(buf), '%+.10f',
c_double(10.0))
self.assertEqual(buf.value, '+10.0000000000')
- self.assertEqual(w.category, DeprecationWarning)
-
class FormatTests(unittest.TestCase):
# ensure that, for the restricted set of format codes,
# %-formatting returns the same values os PyOS_ascii_formatd