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_pep3131.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_pep3131.py')
-rw-r--r-- | Lib/test/test_pep3131.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_pep3131.py b/Lib/test/test_pep3131.py index 9d5f217..ed7558a 100644 --- a/Lib/test/test_pep3131.py +++ b/Lib/test/test_pep3131.py @@ -8,9 +8,12 @@ class PEP3131Test(unittest.TestCase): รค = 1 ยต = 2 # this is a compatibility character ่ = 3 + ๐๐ซ๐ฆ๐ ๐ฌ๐ก๐ข = 4 self.assertEqual(getattr(T, "\xe4"), 1) self.assertEqual(getattr(T, "\u03bc"), 2) self.assertEqual(getattr(T, '\u87d2'), 3) + v = getattr(T, "\U0001d518\U0001d52b\U0001d526\U0001d520\U0001d52c\U0001d521\U0001d522") + self.assertEqual(v, 4) def test_invalid(self): try: |