diff options
| author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-17 19:15:56 (GMT) |
|---|---|---|
| committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-17 19:15:56 (GMT) |
| commit | 945a8ba635e2f46de0c883771f2a4b3fa1bd9df4 (patch) | |
| tree | e0b130c259a8ed38afb5d75b9b311d4ac4951f7f /Lib/test/test_ascii_formatd.py | |
| parent | 2b73c21bedfbabd75c26c1ee700198460344e918 (diff) | |
| download | cpython-945a8ba635e2f46de0c883771f2a4b3fa1bd9df4.zip cpython-945a8ba635e2f46de0c883771f2a4b3fa1bd9df4.tar.gz cpython-945a8ba635e2f46de0c883771f2a4b3fa1bd9df4.tar.bz2 | |
Cleanup some test cases using check_warnings and check_py3k_warnings.
Diffstat (limited to 'Lib/test/test_ascii_formatd.py')
| -rw-r--r-- | Lib/test/test_ascii_formatd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_ascii_formatd.py b/Lib/test/test_ascii_formatd.py index 50e7340..ccbc0a0 100644 --- a/Lib/test/test_ascii_formatd.py +++ b/Lib/test/test_ascii_formatd.py @@ -17,7 +17,7 @@ class FormatDeprecationTests(unittest.TestCase): PyOS_ascii_formatd = pythonapi.PyOS_ascii_formatd buf = create_string_buffer(' ' * 100) - with check_warnings(): + with check_warnings(quiet=False): PyOS_ascii_formatd(byref(buf), sizeof(buf), '%+.10f', c_double(10.0)) self.assertEqual(buf.value, '+10.0000000000') @@ -46,7 +46,7 @@ class FormatTests(unittest.TestCase): ('%-e', 1.234), ] - with check_warnings(): + with check_warnings(quiet=False): for format, val in tests: PyOS_ascii_formatd(byref(buf), sizeof(buf), format, c_double(val)) |
