(filename)
| 39 | |
| 40 | |
| 41 | def download_test_data_file(filename): |
| 42 | TESTDATAURL = f"http://www.pythontest.net/unicode/{unicodedata.unidata_version}/{filename}" |
| 43 | |
| 44 | try: |
| 45 | return open_urlresource(TESTDATAURL, encoding="utf-8", check=check_version) |
| 46 | except PermissionError: |
| 47 | raise unittest.SkipTest( |
| 48 | f"Permission error when downloading {TESTDATAURL} " |
| 49 | f"into the test data directory" |
| 50 | ) |
| 51 | except (OSError, HTTPException) as exc: |
| 52 | raise unittest.SkipTest(f"Failed to download {TESTDATAURL}: {exc}") |
| 53 | |
| 54 | |
| 55 | class UnicodeMethodsTest(unittest.TestCase): |
no test coverage detected
searching dependent graphs…