Skip to content

Fix Pytest4.x compatibility error #420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 26, 2020

Conversation

stanislavlevin
Copy link
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 <[email protected]>
@stanislavlevin stanislavlevin force-pushed the fix_pytest4.x_compat branch from 1a66508 to 7be0c84 Compare May 30, 2019 09:53
@codecov-io
Copy link

codecov-io commented May 30, 2019

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
Copy link

marv commented Jan 26, 2020

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
Member

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

@gsnedders
Copy link
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