MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_normalization

Method test_normalization

Lib/test/test_unicodedata.py:394–409  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

open_urlresourceFunction · 0.90
skipTestMethod · 0.80

Tested by

no test coverage detected