diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-08-13 03:17:18 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-08-13 03:17:18 (GMT) |
commit | f413b80806bb7d077a1611610273dab6d916908d (patch) | |
tree | 26430b8d63dd062bc95fc86bfa7cff6f6cded165 /Lib/test/test_unicode.py | |
parent | 7bf4363f77b9aba82126d092f70aa27f3610bf69 (diff) | |
download | cpython-f413b80806bb7d077a1611610273dab6d916908d.zip cpython-f413b80806bb7d077a1611610273dab6d916908d.tar.gz cpython-f413b80806bb7d077a1611610273dab6d916908d.tar.bz2 |
in narrow builds, make sure to test codepoints as identifier characters (closes #12732)
This fixes the use of Unicode identifiers outside the BMP in narrow builds.
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r-- | Lib/test/test_unicode.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index 55aaba6..09cf48f 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -404,6 +404,7 @@ class UnicodeTest(string_tests.CommonTest, self.assertTrue("bc".isidentifier()) self.assertTrue("b_".isidentifier()) self.assertTrue("ยต".isidentifier()) + self.assertTrue("๐๐ซ๐ฆ๐ ๐ฌ๐ก๐ข".isidentifier()) self.assertFalse(" ".isidentifier()) self.assertFalse("[".isidentifier()) |