Closed Bug 1826326 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 39360 - Reduce the number of ResourceWarnings produced by the tests

Categories

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

task

Tracking

(firefox115 fixed)

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Sam Sneddon <gsnedders@apple.com> wrote:

Reduce the number of ResourceWarnings produced by the tests

This doesn't eliminates all of the ResourceWarnings, but it gets close. What's left is:

ERROR wptserve/tests/functional/test_handlers.py::TestFunctionHandler::test_tuple_1_rv - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <socket.socket [closed] fd=-1, family=2, type=1, proto=6>
ERROR wptserve/tests/functional/test_handlers.py::TestFunctionHandler::test_tuple_4_rv - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <socket.socket [closed] fd=-1, family=2, type=1, proto=6>
ERROR wptserve/tests/functional/test_handlers.py::TestPythonHandler::test_invalid - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <socket.socket [closed] fd=-1, family=2, type=1, proto=6>
ERROR wptserve/tests/functional/test_handlers.py::TestPythonHandler::test_missing - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <socket.socket [closed] fd=-1, family=2, type=1, proto=6>
ERROR wptserve/tests/functional/test_handlers.py::TestPythonHandler::test_no_main - pytest.PytestUnraisableExceptionWarning: Exception ignored in: <socket.socket [closed] fd=-1, family=2, type=1, proto=6>

These are the tests in test_handlers which use pytest.raises; I suspect somehow the excinfo object ends up keeping the socket alive, which results in the error.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Try push failed: decision task BhOCQQ4xRqmcC1X2aMTZrA returned error
Try push failed: decision task JT_jkdd5TzSWkLu9_u2xXg returned error
The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f0e1aecc9359 [wpt PR 39360] - Get rid of ResourceWarnings produced by the tests, a=testonly
Status: REOPENED → RESOLVED
Closed: 3 years ago → 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.