Bump pytest version
Categories
(Testing :: Python Test, enhancement)
Tracking
(firefox101 fixed)
Tracking | Status | |
---|---|---|
firefox101 | --- | fixed |
People
(Reporter: mhentges, Assigned: mhentges)
References
Details
Attachments
(4 files, 1 obsolete file)
Our pytest==4.6.6
is almost three years old.
Newer versions have new features/APIs, slightly better performance, and a cool "warnings" display that makes failures caused by misuse easier to spot.
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
A bunch of modern packages (pytest
, twisted
, automat
) all need attrs==19.2.0
(or newer).
We could bump attrs
all the way to the modern 21.4.0
version, but I'd like to defer that upgrade risk, since there's a
lot of backwards-incompatible changes and deprecations. So, lightly bump it to 19.2.0
.
Comment 2•3 years ago
|
||
Comment on attachment 9257964 [details]
WIP: Bug 1732795: Bump attrs to be compatible with new pytest
Revision D135178 was moved to bug 1748737. Setting attachment 9257964 [details] to obsolete.
Assignee | ||
Comment 3•2 years ago
|
||
Following the pytest "deprecations and removals" docs [1], this patch:
- Replaces
@pytest.yield_fixture
with@pytest.fixture
. - Replaces
.funcargnames
with.fixturenames
. - Uses
Pathlib
parameter instead of thepy.path.local
one in
associatedpytest_*
hooks. - Replaces
--strict
with--strict-markers
[1] https://docs.pytest.org/en/latest/deprecations.html
Depends on D138608
Assignee | ||
Comment 4•2 years ago
|
||
coverage
has native code, so the vendored version was only used as
source code from which the actual package could be built.
Since its always used in a context where we can pip install
over the
network, let's do that. This cleans up our tree a bit and allows us to
leverage the coverage
wheels.
Depends on D138815
Assignee | ||
Comment 5•2 years ago
|
||
Depends on D138816
Pushed by mhentges@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d0f3bf6ad3a3 Resolve upcoming pytest deprecations r=webdriver-reviewers,ahal,whimboo https://hg.mozilla.org/integration/autoland/rev/0bfaaa811421 Install `coverage` using pip r=ahal
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/32902 for changes under testing/web-platform/tests
Comment 8•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d0f3bf6ad3a3
https://hg.mozilla.org/mozilla-central/rev/0bfaaa811421
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 9•2 years ago
|
||
3.6.2
was 3 years old. There's been many helpful features and
ergonomics improvements in the years since.
Depends on D140258
Comment 10•2 years ago
|
||
Pushed by mhentges@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/72f8fcf776c9 Update pytest to 7.0.1 r=ahal
Comment 11•2 years ago
|
||
bugherder |
Assignee | ||
Comment 13•2 years ago
|
||
Good call, yep!
Updated•2 years ago
|
Updated•2 years ago
|
Upstream PR was closed without merging
Upstream PR merged by moz-wptsync-bot
Description
•