summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ucn.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-27 18:31:48 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-27 18:31:48 (GMT)
commit9c62772d5e0e096458c6f5c8e50cc84fcc1383f7 (patch)
tree088d8c2701cf01ed6e516d83aff3182de9cb555d /Lib/test/test_ucn.py
parent35d9428046e74cd9c36fb4507ca048dad32097cc (diff)
downloadcpython-9c62772d5e0e096458c6f5c8e50cc84fcc1383f7.zip
cpython-9c62772d5e0e096458c6f5c8e50cc84fcc1383f7.tar.gz
cpython-9c62772d5e0e096458c6f5c8e50cc84fcc1383f7.tar.bz2
Changes in anticipation of stricter str vs. bytes enforcement.
Diffstat (limited to 'Lib/test/test_ucn.py')
-rw-r--r--Lib/test/test_ucn.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_ucn.py b/Lib/test/test_ucn.py
index 5b8ac2a..78cb780 100644
--- a/Lib/test/test_ucn.py
+++ b/Lib/test/test_ucn.py
@@ -124,7 +124,7 @@ class UnicodeNamesTest(unittest.TestCase):
# long bogus character name
self.assertRaises(
UnicodeError,
- str, bytes("\\N{%s}" % ("x" * 100000)), 'unicode-escape', 'strict'
+ str, bytes("\\N{%s}" % ("x" * 100000), "ascii"), 'unicode-escape', 'strict'
)
# missing closing brace
self.assertRaises(