Closed
Bug 1452896
Opened 6 years ago
Closed 6 years ago
[wpt-sync] Sync PR 10397 - Add python handler directory to Python path in wptserve
Categories
(Testing :: web-platform-tests, enhancement, P4)
Testing
web-platform-tests
Tracking
(firefox61 fixed)
RESOLVED
FIXED
mozilla61
Tracking | Status | |
---|---|---|
firefox61 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 10397 into mozilla-central (this bug is closed when the sync is complete). PR: https://github.com/w3c/web-platform-tests/pull/10397 Details from upstream follow. James Graham <james@hoppipolla.co.uk> wrote: > Add python handler directory to Python path in wptserve > > Currently making import of files relative to the handler is tricky > because, unlike in normal Python, the script directory isn't on the > path. > > This patch adds it to the path when executing the handler. It also > ensures that any modifications made to the path or to sys.modules are > rolled back after the handler has run.
Reporter | ||
Comment 1•6 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=ae4864c20d85bd7ac41909cdd59a9e0bec423467
Reporter | ||
Comment 2•6 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=4daceb88df588f863ad0e53be01c115f7cc270d8
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/mozilla-inbound/rev/4223e774159b [wpt PR 10397] - Add python handler directory to Python path in wptserve, a=testonly
Comment 4•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4223e774159b
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox61:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in
before you can comment on or make changes to this bug.
Description
•