Closed Bug 1615605 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 21802 - Use errno attribute to handle socket.error for PY2 and PY3 compatibility

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox75 fixed)

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 21802 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/21802
Details from upstream follow.

Ziran Sun <zsun@igalia.com> wrote:

Use errno attribute to handle socket.error for PY2 and PY3 compatibility

Python 3 has introduced Built-in Exception class 'ConnectionRefusedError'
as a subclass of ConnectionError for connection-related issue.

Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1882083938fb [wpt PR 21802] - Use errno attribute to handle socket.error for PY2 and PY3 compatibility, a=testonly
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.