summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicode.py
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2018-01-27 05:06:21 (GMT)
committerGitHub <noreply@github.com>2018-01-27 05:06:21 (GMT)
commita49ac9902903a798fab4970ccf563c531199c3f8 (patch)
tree56390f8d6849446b23d3d2a152c6197fc724ae70 /Lib/test/test_unicode.py
parent85527cf50a9a4eecaca4022f7c6cb9e0bae1fa5f (diff)
downloadcpython-a49ac9902903a798fab4970ccf563c531199c3f8.zip
cpython-a49ac9902903a798fab4970ccf563c531199c3f8.tar.gz
cpython-a49ac9902903a798fab4970ccf563c531199c3f8.tar.bz2
bpo-32677: Add .isascii() to str, bytes and bytearray (GH-5342)
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r--Lib/test/test_unicode.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py
index 2b77863..3cc018c 100644
--- a/Lib/test/test_unicode.py
+++ b/Lib/test/test_unicode.py
@@ -638,6 +638,11 @@ class UnicodeTest(string_tests.CommonTest,
self.assertFalse('\U0001F40D'.isalpha())
self.assertFalse('\U0001F46F'.isalpha())
+ def test_isascii(self):
+ super().test_isascii()
+ self.assertFalse("\u20ac".isascii())
+ self.assertFalse("\U0010ffff".isascii())
+
def test_isdecimal(self):
self.checkequalnofix(False, '', 'isdecimal')
self.checkequalnofix(False, 'a', 'isdecimal')