mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
7bf4363f77
commit
f413b80806
4 changed files with 30 additions and 8 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue