summaryrefslogtreecommitdiff
path: root/Lib/test/re_tests.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-09-14 17:40:44 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2014-09-14 17:40:44 +0300
commit7644ff1fb1860ffb5ce83342349f8b905dac633f (patch)
treefd105b733e3a2e77881c830bc1e30c96ecc5a178 /Lib/test/re_tests.py
parented5ea15bda1b0b47edf1354ee8a3e1e8bed0993c (diff)
downloadcpython-git-7644ff1fb1860ffb5ce83342349f8b905dac633f.tar.gz
Now re tests work again on Unicode-disabled build.
Simplified existing detections of Unicode-disabled build.
Diffstat (limited to 'Lib/test/re_tests.py')
-rwxr-xr-xLib/test/re_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/re_tests.py b/Lib/test/re_tests.py
index 25b1229d63..0cf9241953 100755
--- a/Lib/test/re_tests.py
+++ b/Lib/test/re_tests.py
@@ -663,7 +663,7 @@ xyzabc
try:
u = eval("u'\N{LATIN CAPITAL LETTER A WITH DIAERESIS}'")
-except SyntaxError:
+except (SyntaxError, ValueError):
pass
else:
tests.extend([