Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix pytest warnings#544

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ambv merged 2 commits intohtml5lib:masterfromhugovk:fix-pytest-warning
Mar 1, 2023
Merged

Conversation

hugovk
Copy link
Contributor

Fixes#529.

FixesPytestDeprecationWarning: The --strict option is deprecated, use --strict-markers instead.

Also don't show ownDeprecationWarning when testing own code.

Before

$tox -e py38GLOB sdist-make: /private/tmp/html5lib-python/setup.pypy38 inst-nodeps: /private/tmp/html5lib-python/.tox/.tmp/package/1/html5lib-1.2.dev0.zippy38 installed: attrs==21.4.0,coverage==5.5,distlib==0.3.4,filelock==3.6.0,flake8==3.8.4,html5lib @ file:///private/tmp/html5lib-python/.tox/.tmp/package/1/html5lib-1.2.dev0.zip,iniconfig==1.1.1,mccabe==0.6.1,mock==4.0.3,packaging==21.3,platformdirs==2.5.1,pluggy==1.0.0,py==1.11.0,pycodestyle==2.6.0,pyflakes==2.2.0,pyparsing==3.0.7,pytest==6.2.5,pytest-expect==1.1.0,six==1.16.0,toml==0.10.2,tox==3.24.5,u-msgpack-python==2.7.1,virtualenv==20.14.0,webencodings==0.5.1py38 run-test-pre: PYTHONHASHSEED='4056569232'py38 run-test: commands[0] | /private/tmp/html5lib-python/.tox/py38/bin/py.test=============================================================== test session starts ===============================================================platform darwin -- Python 3.8.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0cachedir: .tox/py38/.pytest_cacherootdir: /private/tmp/html5lib-python, configfile: pytest.iniplugins: expect-1.1.0collected 991 itemshtml5lib/tests/test_alphabeticalattributes.py .....                                                                                         [  0%]html5lib/tests/test_encoding.py ............................ss                                                                              [  3%]html5lib/tests/test_meta.py .                                                                                                               [  3%]html5lib/tests/test_optionaltags_filter.py .                                                                                                [  3%]html5lib/tests/test_parser2.py ..........                                                                                                   [  4%]html5lib/tests/test_sanitizer.py .......................................................................................................... [ 15%]........................................................................................................................................... [ 29%]........................................................................................................................................... [ 43%].................                                                                                                                           [ 45%]html5lib/tests/test_serializer.py ........................................................................................sss.............. [ 55%]........................................................................................................................................... [ 69%]..................................................................................                                                          [ 78%]html5lib/tests/test_stream.py ..................................................................................................            [ 87%]html5lib/tests/test_tokenizer2.py ...                                                                                                       [ 88%]html5lib/tests/test_treeadapters.py .                                                                                                       [ 88%]html5lib/tests/test_treewalkers.py .....ssssss....sssssssssssssssss                                                                         [ 91%]html5lib/tests/test_whitespace_filter.py ...........                                                                                        [ 92%]html5lib/tests/sanitizer-testdata/tests1.dat ........................................................................                       [100%]================================================================ warnings summary =================================================================.tox/py38/lib/python3.8/site-packages/_pytest/config/__init__.py:1183  /private/tmp/html5lib-python/.tox/py38/lib/python3.8/site-packages/_pytest/config/__init__.py:1183: PytestDeprecationWarning: The --strict option is deprecated, use --strict-markers instead.    self.issue_config_time_warning(html5lib/filters/sanitizer.py:29  /private/tmp/html5lib-python/html5lib/filters/sanitizer.py:29: DeprecationWarning: html5lib's sanitizer is deprecated; see https://github.com/html5lib/html5lib-python/issues/443 and please let us know if Bleach is unsuitable for your needs    warnings.warn(_deprecation_msg, DeprecationWarning)-- Docs: https://docs.pytest.org/en/stable/warnings.html=================================================== 963 passed, 28 skipped, 2 warnings in 0.97s ===================================================py38 run-test: commands[1] | flake8 /private/tmp/html5lib-python_____________________________________________________________________ summary _____________________________________________________________________  py38: commands succeeded  congratulations :)

After

$tox -e py38GLOB sdist-make: /private/tmp/html5lib-python/setup.pypy38 inst-nodeps: /private/tmp/html5lib-python/.tox/.tmp/package/1/html5lib-1.2.dev0.zippy38 installed: attrs==21.4.0,coverage==5.5,distlib==0.3.4,filelock==3.6.0,flake8==3.8.4,html5lib @ file:///private/tmp/html5lib-python/.tox/.tmp/package/1/html5lib-1.2.dev0.zip,iniconfig==1.1.1,mccabe==0.6.1,mock==4.0.3,packaging==21.3,platformdirs==2.5.1,pluggy==1.0.0,py==1.11.0,pycodestyle==2.6.0,pyflakes==2.2.0,pyparsing==3.0.7,pytest==6.2.5,pytest-expect==1.1.0,six==1.16.0,toml==0.10.2,tox==3.24.5,u-msgpack-python==2.7.1,virtualenv==20.14.0,webencodings==0.5.1py38 run-test-pre: PYTHONHASHSEED='3043936860'py38 run-test: commands[0] | /private/tmp/html5lib-python/.tox/py38/bin/py.test=============================================================== test session starts ===============================================================platform darwin -- Python 3.8.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0cachedir: .tox/py38/.pytest_cacherootdir: /private/tmp/html5lib-python, configfile: pytest.iniplugins: expect-1.1.0collected 991 itemshtml5lib/tests/test_alphabeticalattributes.py .....                                                                                         [  0%]html5lib/tests/test_encoding.py ............................ss                                                                              [  3%]html5lib/tests/test_meta.py .                                                                                                               [  3%]html5lib/tests/test_optionaltags_filter.py .                                                                                                [  3%]html5lib/tests/test_parser2.py ..........                                                                                                   [  4%]html5lib/tests/test_sanitizer.py .......................................................................................................... [ 15%]........................................................................................................................................... [ 29%]........................................................................................................................................... [ 43%].................                                                                                                                           [ 45%]html5lib/tests/test_serializer.py ........................................................................................sss.............. [ 55%]........................................................................................................................................... [ 69%]..................................................................................                                                          [ 78%]html5lib/tests/test_stream.py ..................................................................................................            [ 87%]html5lib/tests/test_tokenizer2.py ...                                                                                                       [ 88%]html5lib/tests/test_treeadapters.py .                                                                                                       [ 88%]html5lib/tests/test_treewalkers.py .....ssssss....sssssssssssssssss                                                                         [ 91%]html5lib/tests/test_whitespace_filter.py ...........                                                                                        [ 92%]html5lib/tests/sanitizer-testdata/tests1.dat ........................................................................                       [100%]========================================================= 963 passed, 28 skipped in 0.92s =========================================================py38 run-test: commands[1] | flake8 /private/tmp/html5lib-python_____________________________________________________________________ summary _____________________________________________________________________  py38: commands succeeded  congratulations :)

@hugovkhugovk mentioned this pull requestApr 3, 2022
@ambvambv merged commit6815a54 intohtml5lib:masterMar 1, 2023
@hugovkhugovk deleted the fix-pytest-warning branchMarch 1, 2023 15:09
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ambvambvambv approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1.1: test suite is failing
2 participants
@hugovk@ambv

[8]ページ先頭

©2009-2025 Movatter.jp