Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1693486 - html5lib cannot be tested with pytest 4
Summary: html5lib cannot be tested with pytest 4
Keywords:
Status: NEW
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-03-28 00:48 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Github html5lib html5lib-python issues 411 None None None 2019-03-28 00:27:08 UTC
Github html5lib html5lib-python pull 414 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 ======================


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