(self)
| 750 | |
| 751 | @support.requires_resource('cpu') |
| 752 | def test_isspace_invariant(self): |
| 753 | for codepoint in range(sys.maxunicode + 1): |
| 754 | char = chr(codepoint) |
| 755 | bidirectional = unicodedata.bidirectional(char) |
| 756 | category = unicodedata.category(char) |
| 757 | self.assertEqual(char.isspace(), |
| 758 | (bidirectional in ('WS', 'B', 'S') |
| 759 | or category == 'Zs')) |
| 760 | |
| 761 | def test_isalnum(self): |
| 762 | super().test_isalnum() |
nothing calls this directly
no test coverage detected