(self)
| 392 | @requires_resource('network') |
| 393 | @requires_resource('cpu') |
| 394 | def test_normalization(self): |
| 395 | TESTDATAFILE = "NormalizationTest.txt" |
| 396 | TESTDATAURL = f"http://www.pythontest.net/unicode/{unicodedata.unidata_version}/{TESTDATAFILE}" |
| 397 | |
| 398 | # Hit the exception early |
| 399 | try: |
| 400 | testdata = open_urlresource(TESTDATAURL, encoding="utf-8", |
| 401 | check=self.check_version) |
| 402 | except PermissionError: |
| 403 | self.skipTest(f"Permission error when downloading {TESTDATAURL} " |
| 404 | f"into the test data directory") |
| 405 | except (OSError, HTTPException) as exc: |
| 406 | self.skipTest(f"Failed to download {TESTDATAURL}: {exc}") |
| 407 | |
| 408 | with testdata: |
| 409 | self.run_normalization_tests(testdata) |
| 410 | |
| 411 | def run_normalization_tests(self, testdata): |
| 412 | part = None |
nothing calls this directly
no test coverage detected