10000 GH-90812: Add test for `urlopen()` of file URI for UNC path by barneygale · Pull Request #132489 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-90812: Add test for urlopen() of file URI for UNC path #132489

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 15, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't test localised OS error string
  • Loading branch information
barneygale committed Apr 14, 2025
commit d86cbc6c13734ab2a50f139fbef1397182079602
1 change: 0 additions & 1 deletion Lib/test/test_urllib.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ def test_remote_authority(self):
with self.assertRaises(urllib.error.URLError) as e:
urllib.request.urlopen(url)
if os.name == 'nt':
self.assertEqual(e.exception.reason, 'The network path was not found')
self.assertEqual(e.exception.filename, r'\\pythontest.net\foo\bar')
else:
self.assertEqual(e.exception.reason, 'file:// scheme is supported only on localhost')
Expand Down
Loading
0