Skip to content
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

1.0.1: trst suite is failing #451

Closed
kloczek opened this issue Feb 26, 2020 · 3 comments
Closed

1.0.1: trst suite is failing #451

kloczek opened this issue Feb 26, 2020 · 3 comments

Comments

@kloczek
Copy link

kloczek commented Feb 26, 2020

+ cd html5lib-1.0.1
+ /usr/bin/python3 -m pytest -k 'not test_encoding'
========================================================================================= test session starts ==========================================================================================
platform linux -- Python 3.8.2rc2, pytest-4.6.9, py-1.8.0, pluggy-0.13.1
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/home/tkloczko/rpmbuild/BUILD/html5lib-1.0.1/.hypothesis/examples')
rootdir: /home/tkloczko/rpmbuild/BUILD/html5lib-1.0.1, inifile: pytest.ini
plugins: flaky-3.5.3, forked-1.1.1, mock-1.10.4, expect-1.1.0, hypothesis-4.23.8, xdist-1.31.0, httpbin-0.3.0, cov-2.8.1
collected 28011 items / 1 errors / 30 deselected / 27980 selected

================================================================================================ ERRORS ================================================================================================
____________________________________________________________________________ ERROR collecting html5lib/tests/test_stream.py ____________________________________________________________________________
/usr/lib/python3.8/site-packages/pluggy/hooks.py:286: in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
/usr/lib/python3.8/site-packages/pluggy/manager.py:93: in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python3.8/site-packages/pluggy/manager.py:84: in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
/usr/lib/python3.8/site-packages/_pytest/python.py:234: in pytest_pycollect_makeitem
    res = list(collector._genfunctions(name, obj))
/usr/lib/python3.8/site-packages/_pytest/python.py:410: in _genfunctions
    self.ihook.pytest_generate_tests(metafunc=metafunc)
/usr/lib/python3.8/site-packages/pluggy/hooks.py:286: in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
/usr/lib/python3.8/site-packages/pluggy/manager.py:93: in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python3.8/site-packages/pluggy/manager.py:84: in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
/usr/lib/python3.8/site-packages/_pytest/python.py:137: in pytest_generate_tests
    metafunc.parametrize(*marker.args, **marker.kwargs)
/usr/lib/python3.8/site-packages/_pytest/python.py:999: in parametrize
    argnames, parameters = ParameterSet._for_parametrize(
/usr/lib/python3.8/site-packages/_pytest/mark/structures.py:131: 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: PytestCollectionWarning: 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: PytestCollectionWarning: 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: PytestCollectionWarning: 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: PytestCollectionWarning: 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
===Flaky Test Report===


===End Flaky Test Report===
======================================================================================= short test summary info ========================================================================================
FAILED html5lib/tests/test_stream.py - TypeError: object of type 'MarkDecorator' has no len()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================================================================== 30 deselected, 4 warnings, 1 error in 3.07 seconds ==========================================================================
error: Bad exit status from /var/tmp/rpm-tmp.SzcpRn (%check)
@hugovk
Copy link
Contributor

hugovk commented Feb 26, 2020

pytest 4 is not yet supported, see #429.

In the meantime, please use pytest 3.2.5.

@kloczek
Copy link
Author

kloczek commented Feb 26, 2020

Will wait until it will be supported all other packages which I have packaged as rpm have no problems with pytest 4.

@kloczek
Copy link
Author

kloczek commented Jul 3, 2020

Just checked 1.1 and all looks good.

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

No branches or pull requests

3 participants