diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-06-11 14:55:19 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-06-11 14:55:19 (GMT) |
commit | 7815c5e91e22a7f6dfb6b64357d25982f91ea46e (patch) | |
tree | 93ebaccba41b91f58ec27a0b0f29a949f31b677f /Lib | |
parent | 4dbd01b43506ead947f774bcfdddf52219f862f0 (diff) | |
download | cpython-7815c5e91e22a7f6dfb6b64357d25982f91ea46e.zip cpython-7815c5e91e22a7f6dfb6b64357d25982f91ea46e.tar.gz cpython-7815c5e91e22a7f6dfb6b64357d25982f91ea46e.tar.bz2 |
Check unicode identifier directly instead of converting
it to an 8bit string first.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_descr.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index f20f676..fca0061 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -1085,6 +1085,13 @@ def slots(): raise TestFailed, "['foo\\0bar'] slots not caught" try: class C(object): + __slots__ = ["foo\u1234bar"] + except TypeError: + pass + else: + raise TestFailed, "['foo\\u1234bar'] slots not caught" + try: + class C(object): __slots__ = ["1"] except TypeError: pass |