Skip to content

Commit 3c72270

Browse files
authored
Merge branch '3.13' into backport-8a00c9a-3.13
2 parents 1c82dc0 + 1059b0c commit 3c72270

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Lib/test/test_ucn.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ def check_version(testfile):
182182
try:
183183
testdata = support.open_urlresource(url, encoding="utf-8",
184184
check=check_version)
185-
except urllib.error.HTTPError as e:
186-
e.close()
187-
self.skipTest(f"Could not retrieve {url} {e=}")
188-
except (OSError, HTTPException) as e:
189-
self.skipTest(f"Could not retrieve {url} {e=}")
185+
except urllib.error.HTTPError as exc:
186+
exc.close()
187+
self.skipTest(f"Could not retrieve {url}: {exc!r}")
188+
except (OSError, HTTPException) as exc:
189+
self.skipTest(f"Could not retrieve {url}: {exc!r}")
190190
with testdata:
191191
for line in testdata:
192192
line = line.strip()

0 commit comments

Comments
 (0)