Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1693486 - html5lib cannot be tested with pytest 4
Summary: html5lib cannot be tested with pytest 4
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-html5lib
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTEST4 PYTHON38
TreeView+ depends on / blocked
 
Reported: 2019-03-28 00:24 UTC by Miro Hrončok
Modified: 2019-07-29 23:28 UTC (History)
9 users (show)

Fixed In Version: python-html5lib-1.0.1-4.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-29 23:28:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github html5lib html5lib-python issues 411 0 None None None 2019-03-28 00:27:08 UTC
Github html5lib html5lib-python pull 414 0 None None None 2019-03-28 00:48:03 UTC

Description Miro Hrončok 2019-03-28 00:24:44 UTC
+ /usr/bin/python3 -m pytest
============================= test session starts ==============================
platform linux -- Python 3.8.0a3, pytest-4.3.0, py-1.7.0, pluggy-0.9.0
rootdir: /builddir/build/BUILD/html5lib-1.0.1, inifile: pytest.ini
plugins: expect-1.1.0
collected 31265 items / 1 errors / 31264 selected

==================================== ERRORS ====================================
________________ ERROR collecting html5lib/tests/test_stream.py ________________
/usr/lib/python3.8/site-packages/pluggy/hooks.py:289: in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
/usr/lib/python3.8/site-packages/pluggy/manager.py:68: in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python3.8/site-packages/pluggy/manager.py:59: in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
/usr/lib/python3.8/site-packages/_pytest/python.py:226: in pytest_pycollect_makeitem
    res = list(collector._genfunctions(name, obj))
/usr/lib/python3.8/site-packages/_pytest/python.py:403: in _genfunctions
    self.ihook.pytest_generate_tests(metafunc=metafunc)
/usr/lib/python3.8/site-packages/pluggy/hooks.py:289: in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
/usr/lib/python3.8/site-packages/pluggy/manager.py:68: in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python3.8/site-packages/pluggy/manager.py:59: in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
/usr/lib/python3.8/site-packages/_pytest/python.py:133: in pytest_generate_tests
    metafunc.parametrize(*marker.args, **marker.kwargs)
/usr/lib/python3.8/site-packages/_pytest/python.py:990: in parametrize
    argnames, parameters = ParameterSet._for_parametrize(
/usr/lib/python3.8/site-packages/_pytest/mark/structures.py:114: in _for_parametrize
    if len(param.values) != len(argnames):
E   TypeError: object of type 'MarkDecorator' has no len()
=============================== warnings summary ===============================
html5lib/tests/test_encoding.py:98
  html5lib/tests/test_encoding.py:98: PytestWarning: yield tests were removed in pytest 4.0 - test_encoding will be ignored
    def test_encoding():

html5lib/tests/test_sanitizer.py:62
  html5lib/tests/test_sanitizer.py:62: PytestWarning: yield tests were removed in pytest 4.0 - test_sanitizer will be ignored
    def test_sanitizer():

html5lib/tests/test_serializer.py:220
  html5lib/tests/test_serializer.py:220: PytestWarning: yield tests were removed in pytest 4.0 - test_serializer will be ignored
    def test_serializer():

html5lib/tests/test_treewalkers.py:81
  html5lib/tests/test_treewalkers.py:81: PytestWarning: yield tests were removed in pytest 4.0 - test_treewalker_six_mix will be ignored
    def test_treewalker_six_mix():

-- Docs: https://docs.pytest.org/en/latest/warnings.html
=========================== short test summary info ============================
FAILED html5lib/tests/test_stream.py
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
===================== 4 warnings, 1 error in 3.64 seconds ======================

Comment 1 Charalampos Stratakis 2019-06-25 13:46:22 UTC
We should backport the PR to Fedora to fix the issue, as upstream do not answer to queries so far.


Note You need to log in before you can comment on or make changes to this bug.