summaryrefslogtreecommitdiff
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2012-11-17 03:43:15 +0100
committerJesus Cea <jcea@jcea.es>2012-11-17 03:43:15 +0100
commitaa3eafec628637ab0369d1268934eb6201cf32d1 (patch)
treef663df212bba736aa488b8d5a6b813e3f564538d /Lib/test/test_exceptions.py
parent41a5c48da1ced4383714ff0fb6da8a65b4f96bc7 (diff)
parentd5ef550810db6eee6cf6d9f2543b767543bb3bdf (diff)
downloadcpython-aa3eafec628637ab0369d1268934eb6201cf32d1.tar.gz
MERGE: Closes #16461: Wave library should be able to deal with 4GB wav files, and sample rate of 44100 Hz.
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 1ad7f97b74..e62ed3c93b 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -8,8 +8,8 @@ import weakref
import errno
from test.support import (TESTFN, captured_output, check_impl_detail,
- cpython_only, gc_collect, run_unittest, no_tracing,
- unlink)
+ check_warnings, cpython_only, gc_collect, run_unittest,
+ no_tracing, unlink)
class NaiveException(Exception):
def __init__(self, x):
@@ -947,9 +947,10 @@ class ImportErrorTests(unittest.TestCase):
def test_non_str_argument(self):
# Issue #15778
- arg = b'abc'
- exc = ImportError(arg)
- self.assertEqual(str(arg), str(exc))
+ with check_warnings(('', BytesWarning), quiet=True):
+ arg = b'abc'
+ exc = ImportError(arg)
+ self.assertEqual(str(arg), str(exc))
def test_main():