summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-11-16 07:54:19 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-11-16 07:54:19 (GMT)
commit345379a7f8ae2d8f5151eacc0eaa9f3902e76c8e (patch)
tree97897f38ac8ada7b3c3e9b3f4a3d48937f2e0c1e /Lib
parent11060a4a48811f7f13d8f71b5ece2acda112b6de (diff)
downloadcpython-345379a7f8ae2d8f5151eacc0eaa9f3902e76c8e.zip
cpython-345379a7f8ae2d8f5151eacc0eaa9f3902e76c8e.tar.gz
cpython-345379a7f8ae2d8f5151eacc0eaa9f3902e76c8e.tar.bz2
#13406: correct the error message in check_warnings too.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_codecs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py
index 42c8fcf..cbcf18b 100644
--- a/Lib/test/test_codecs.py
+++ b/Lib/test/test_codecs.py
@@ -1030,7 +1030,7 @@ class UnicodeInternalTest(unittest.TestCase):
for internal in not_ok:
if sys.byteorder == "little":
internal = bytes(reversed(internal))
- with support.check_warnings(('unicode_internal codecs has been '
+ with support.check_warnings(('unicode_internal codec has been '
'deprecated', DeprecationWarning)):
self.assertRaises(UnicodeDecodeError, internal.decode,
"unicode_internal")
@@ -1038,7 +1038,7 @@ class UnicodeInternalTest(unittest.TestCase):
@unittest.skipUnless(SIZEOF_WCHAR_T == 4, 'specific to 32-bit wchar_t')
def test_decode_error_attributes(self):
try:
- with support.check_warnings(('unicode_internal codecs has been '
+ with support.check_warnings(('unicode_internal codec has been '
'deprecated', DeprecationWarning)):
b"\x00\x00\x00\x00\x00\x11\x11\x00".decode("unicode_internal")
except UnicodeDecodeError as ex:
@@ -1053,7 +1053,7 @@ class UnicodeInternalTest(unittest.TestCase):
def test_decode_callback(self):
codecs.register_error("UnicodeInternalTest", codecs.ignore_errors)
decoder = codecs.getdecoder("unicode_internal")
- with support.check_warnings(('unicode_internal codecs has been '
+ with support.check_warnings(('unicode_internal codec has been '
'deprecated', DeprecationWarning)):
ab = "ab".encode("unicode_internal").decode()
ignored = decoder(bytes("%s\x22\x22\x22\x22%s" % (ab[:4], ab[4:]),