We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1c82dc0 + 1059b0c commit 3c72270Copy full SHA for 3c72270
Lib/test/test_ucn.py
@@ -182,11 +182,11 @@ def check_version(testfile):
182
try:
183
testdata = support.open_urlresource(url, encoding="utf-8",
184
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
+ except urllib.error.HTTPError as exc:
+ exc.close()
+ self.skipTest(f"Could not retrieve {url}: {exc!r}")
+ except (OSError, HTTPException) as exc:
190
with testdata:
191
for line in testdata:
192
line = line.strip()
0 commit comments