(self)
| 862 | |
| 863 | @support.requires_resource('cpu') |
| 864 | def test_isprintable_invariant(self): |
| 865 | for codepoint in range(sys.maxunicode + 1): |
| 866 | char = chr(codepoint) |
| 867 | category = unicodedata.category(char) |
| 868 | self.assertEqual(char.isprintable(), |
| 869 | category[0] not in ('C', 'Z') |
| 870 | or char == ' ') |
| 871 | |
| 872 | def test_surrogates(self): |
| 873 | for s in ('a\uD800b\uDFFF', 'a\uDFFFb\uD800', |
nothing calls this directly
no test coverage detected