Skip to content
Prev Previous commit
Merge branch '3.13' into backport-8a00c9a-3.13
  • Loading branch information
graingert authored Mar 28, 2025
commit 3c72270279579f63280fbd8389a0ffb0bdb96eb4
10 changes: 5 additions & 5 deletions Lib/test/test_ucn.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ def check_version(testfile):
try:
testdata = support.open_urlresource(url, encoding="utf-8",
check=check_version)
except urllib.error.HTTPError as e:
e.close()
self.skipTest(f"Could not retrieve {url} {e=}")
except (OSError, HTTPException) as e:
self.skipTest(f"Could not retrieve {url} {e=}")
except urllib.error.HTTPError as exc:
exc.close()
self.skipTest(f"Could not retrieve {url}: {exc!r}")
except (OSError, HTTPException) as exc:
self.skipTest(f"Could not retrieve {url}: {exc!r}")
with testdata:
for line in testdata:
line = line.strip()
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.