summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ucn.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-10-23 17:22:08 (GMT)
committerFred Drake <fdrake@acm.org>2000-10-23 17:22:08 (GMT)
commit004d5e6880940ddbb38460986ac62ee0f1bae97d (patch)
tree682e75e743f5c22206a65ac0262c03ce37e4fbee /Lib/test/test_ucn.py
parent2e6d25c5bbf3e2d4f18191c0836b5ed8f94dc850 (diff)
downloadcpython-004d5e6880940ddbb38460986ac62ee0f1bae97d.zip
cpython-004d5e6880940ddbb38460986ac62ee0f1bae97d.tar.gz
cpython-004d5e6880940ddbb38460986ac62ee0f1bae97d.tar.bz2
Make reindent.py happy (convert everything to 4-space indents!).
Diffstat (limited to 'Lib/test/test_ucn.py')
-rw-r--r--Lib/test/test_ucn.py27
1 files changed, 13 insertions, 14 deletions
diff --git a/Lib/test/test_ucn.py b/Lib/test/test_ucn.py
index d631406..f1a6229 100644
--- a/Lib/test/test_ucn.py
+++ b/Lib/test/test_ucn.py
@@ -52,31 +52,30 @@ k_cchMaxUnicodeName = 83
s = "\N{" + "1" * (k_cchMaxUnicodeName + 2) + "}"
try:
- unicode(s, 'unicode-escape', 'strict')
+ unicode(s, 'unicode-escape', 'strict')
except UnicodeError:
- pass
+ pass
else:
- raise AssertionError, "failed to raise an exception when presented " \
- "with a UCN > k_cchMaxUnicodeName"
+ raise AssertionError, "failed to raise an exception when presented " \
+ "with a UCN > k_cchMaxUnicodeName"
try:
- unicode("\N{blah}", 'unicode-escape', 'strict')
+ unicode("\N{blah}", 'unicode-escape', 'strict')
except UnicodeError:
- pass
+ pass
else:
- raise AssertionError, "failed to raise an exception when given a bogus character name"
+ raise AssertionError, "failed to raise an exception when given a bogus character name"
try:
- unicode("\N{SPACE", 'unicode-escape', 'strict')
+ unicode("\N{SPACE", 'unicode-escape', 'strict')
except UnicodeError:
- pass
+ pass
else:
- raise AssertionError, "failed to raise an exception for a missing closing brace."
+ raise AssertionError, "failed to raise an exception for a missing closing brace."
try:
- unicode("\NSPACE", 'unicode-escape', 'strict')
+ unicode("\NSPACE", 'unicode-escape', 'strict')
except UnicodeError:
- pass
+ pass
else:
- raise AssertionError, "failed to raise an exception for a missing opening brace."
+ raise AssertionError, "failed to raise an exception for a missing opening brace."
print "done."
-