Skip to content

Fix Pytest4.x compatibility error - #420

Merged
gsnedders merged 1 commit into
html5lib:masterfrom
stanislavlevin:fix_pytest4.x_compat
Feb 26, 2020
Merged

gsnedders merged 1 commit into
html5lib:masterfrom
stanislavlevin:fix_pytest4.x_compat

Conversation

@stanislavlevin

Copy link
Copy Markdown
Contributor

According to pytest docs:

marks in pytest.mark.parametrize
Removed in version 4.0.

Applying marks to values of a pytest.mark.parametrize call is now deprecated.
...

This was considered hard to read and understand, and also its implementation
presented problems to the code preventing further internal improvements in the
marks architecture.

To update the code, use pytest.param

According to pytest docs:
```
marks in pytest.mark.parametrize
Removed in version 4.0.

Applying marks to values of a pytest.mark.parametrize call is now deprecated.
...

This was considered hard to read and understand, and also its implementation
presented problems to the code preventing further internal improvements in the
marks architecture.

To update the code, use pytest.param
```

Signed-off-by: Stanislav Levin <slev@altlinux.org>
@stanislavlevin
stanislavlevin force-pushed the fix_pytest4.x_compat branch from 1a66508 to 7be0c84 Compare May 30, 2019 09:53
@codecov-io

codecov-io commented May 30, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #420 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #420   +/-   ##
=======================================
  Coverage   90.79%   90.79%           
=======================================
  Files          50       50           
  Lines        6952     6952           
  Branches     1328     1328           
=======================================
  Hits         6312     6312           
  Misses        481      481           
  Partials      159      159
Impacted Files Coverage Δ
html5lib/tests/test_stream.py 98.87% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b22754...7be0c84. Read the comment docs.

@marv

marv commented Jan 26, 2020

Copy link
Copy Markdown

What's the status of this? Would be great to have a release that's compatible with pytest >= 4

@hugovk

This comment has been minimized.

@gsnedders

Copy link
Copy Markdown
Member

@hugovk do you have any views on this v #429?

@gsnedders

Copy link
Copy Markdown
Member

Oh, wait, #429 is a superset of this.

@gsnedders
gsnedders merged commit 9c44367 into html5lib:master Feb 26, 2020
@gsnedders gsnedders mentioned this pull request Feb 26, 2020
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