Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Narrow the Exception in test_urllib2 test. Catch URLError, not OSError#918

Merged
orsenthil merged 1 commit into
python:masterpython/cpython:masterfrom
orsenthil:fix_testCopy head branch name to clipboard
Mar 31, 2017
Merged

Narrow the Exception in test_urllib2 test. Catch URLError, not OSError#918
orsenthil merged 1 commit into
python:masterpython/cpython:masterfrom
orsenthil:fix_testCopy head branch name to clipboard

Conversation

@orsenthil

Copy link
Copy Markdown
Member

FileHandler catches OSError and raises them as URLError. Remove the reference to OSError in the tests.

@mention-bot

Copy link
Copy Markdown

@orsenthil, thanks for your PR! By analyzing the history of the files in this pull request, we identified @facundobatista, @Yhg1s and @loewis to be potential reviewers.

@orsenthil orsenthil merged commit ed3dd1c into python:master Mar 31, 2017
orsenthil added a commit that referenced this pull request Mar 31, 2017
…n urllib.request module. (#918) (#920)

(cherry picked from commit ed3dd1c)
orsenthil added a commit that referenced this pull request Mar 31, 2017
…n urllib.request module. (#918) (#921)

(cherry picked from commit ed3dd1c)
@serhiy-storchaka

Copy link
Copy Markdown
Member

Shouldn't the comment # XXXX remove OSError when bug fixed be removed now?

@orsenthil

Copy link
Copy Markdown
Member Author

@serhiy-storchaka, it is removed: https://github.com/python/cpython/pull/918/files - are you referring to a comment at some other place?

Comment thread Lib/test/test_urllib2.py
@@ -839,7 +838,7 @@ def test_file(self):
try:
h.file_open(req)
# XXXX remove OSError when bug fixed

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm referring to this comment.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, it's right there in the context and still I missed it. Thanks for point out. I will remove it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's removed now: #1020
Thank you for catching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.