(self)
| 743 | |
| 744 | @support.requires_resource('cpu') |
| 745 | def test_isspace_invariant(self): |
| 746 | for codepoint in range(sys.maxunicode + 1): |
| 747 | char = chr(codepoint) |
| 748 | bidirectional = unicodedata.bidirectional(char) |
| 749 | category = unicodedata.category(char) |
| 750 | self.assertEqual(char.isspace(), |
| 751 | (bidirectional in ('WS', 'B', 'S') |
| 752 | or category == 'Zs')) |
| 753 | |
| 754 | def test_isalnum(self): |
| 755 | super().test_isalnum() |
nothing calls this directly
no test coverage detected