mirror of
https://github.com/python/cpython.git
synced 2025-09-29 11:45:57 +00:00
Skip test_normalization.test_main() if download raises a permission
error.
(cherry picked from commit d13d54748d
)
This commit is contained in:
parent
51f40a81a4
commit
acdf159b24
1 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,9 @@ class NormalizationTest(unittest.TestCase):
|
||||||
try:
|
try:
|
||||||
testdata = open_urlresource(TESTDATAURL, encoding="utf-8",
|
testdata = open_urlresource(TESTDATAURL, encoding="utf-8",
|
||||||
check=check_version)
|
check=check_version)
|
||||||
|
except PermissionError:
|
||||||
|
self.skipTest(f"Permission error when downloading {TESTDATAURL} "
|
||||||
|
f"into the test data directory")
|
||||||
except (OSError, HTTPException):
|
except (OSError, HTTPException):
|
||||||
self.fail(f"Could not retrieve {TESTDATAURL}")
|
self.fail(f"Could not retrieve {TESTDATAURL}")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue