#8435 [ipatests] failures due to new Pytest6.0 (pypi part)
Closed: fixed 3 years ago by frenaud. Opened 3 years ago by slev.

With recently released Pytest 6.0 Azure's task Tox fails:

test_ipatests_plugins/test_depr_frameworks.py FF                         [ 96%]
...

2020-07-29T09:08:14.2566866Z =================================== FAILURES ===================================
2020-07-29T09:08:14.2567437Z __________________________________ test_xunit __________________________________
2020-07-29T09:08:14.2567815Z 
2020-07-29T09:08:14.2568935Z xunit_testdir = <Testdir local('/tmp/pytest-of-vsts_azpcontainer/pytest-0/test_xunit0')>
2020-07-29T09:08:14.2569391Z 
2020-07-29T09:08:14.2569742Z     def test_xunit(xunit_testdir):
2020-07-29T09:08:14.2570190Z         result = xunit_testdir.runpytest()
2020-07-29T09:08:14.2570603Z >       result.assert_outcomes(passed=1)
2020-07-29T09:08:14.2571452Z E       AssertionError: assert {'errors': 0,...pped': 0, ...} == {'errors': 0,...pped': 0, ...}
2020-07-29T09:08:14.2572326Z E         Omitting 5 identical items, use -vv to show
2020-07-29T09:08:14.2572777Z E         Differing items:
2020-07-29T09:08:14.2573428Z E         {'passed': 0} != {'passed': 1}
2020-07-29T09:08:14.2574076Z E         Use -v to get the full diff
2020-07-29T09:08:14.2574417Z 
2020-07-29T09:08:14.2575201Z /__w/1/s/.tox/py3/lib/python3.8/site-packages/ipatests/test_ipatests_plugins/test_depr_frameworks.py:84: AssertionError
2020-07-29T09:08:14.2576199Z ----------------------------- Captured stdout call -----------------------------
2020-07-29T09:08:14.2576782Z ============================= test session starts ==============================
2020-07-29T09:08:14.2577557Z platform linux -- Python 3.8.3, pytest-6.0.0, py-1.9.0, pluggy-0.13.1
2020-07-29T09:08:14.2578345Z rootdir: /tmp/pytest-of-vsts_azpcontainer/pytest-0/test_xunit0
2020-07-29T09:08:14.2578978Z plugins: multihost-3.4
2020-07-29T09:08:14.2579727Z collected 1 item
2020-07-29T09:08:14.2580148Z INTERNALERROR> Traceback (most recent call last):
2020-07-29T09:08:14.2581059Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/_pytest/main.py", line 240, in wrap_session
2020-07-29T09:08:14.2581684Z INTERNALERROR>     session.exitstatus = doit(config, session) or 0
2020-07-29T09:08:14.2582548Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/_pytest/main.py", line 295, in _main
2020-07-29T09:08:14.2583152Z INTERNALERROR>     config.hook.pytest_collection(session=session)
2020-07-29T09:08:14.2584022Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/hooks.py", line 286, in __call__
2020-07-29T09:08:14.2584655Z INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
2020-07-29T09:08:14.2585549Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/manager.py", line 93, in _hookexec
2020-07-29T09:08:14.2586299Z INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
2020-07-29T09:08:14.2587207Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/manager.py", line 337, in traced_hookexec
2020-07-29T09:08:14.2587822Z INTERNALERROR>     return outcome.get_result()
2020-07-29T09:08:14.2594041Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/callers.py", line 80, in get_result
2020-07-29T09:08:14.2594875Z INTERNALERROR>     raise ex[1].with_traceback(ex[2])
2020-07-29T09:08:14.2595860Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/callers.py", line 52, in from_call
2020-07-29T09:08:14.2596490Z INTERNALERROR>     result = func()
2020-07-29T09:08:14.2597365Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/manager.py", line 335, in <lambda>
2020-07-29T09:08:14.2598090Z INTERNALERROR>     outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs))
2020-07-29T09:08:14.2599036Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/manager.py", line 84, in <lambda>
2020-07-29T09:08:14.2599754Z INTERNALERROR>     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
2020-07-29T09:08:14.2600702Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/callers.py", line 208, in _multicall
2020-07-29T09:08:14.2601303Z INTERNALERROR>     return outcome.get_result()
2020-07-29T09:08:14.2602123Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/callers.py", line 80, in get_result
2020-07-29T09:08:14.2602732Z INTERNALERROR>     raise ex[1].with_traceback(ex[2])
2020-07-29T09:08:14.2603576Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/callers.py", line 187, in _multicall
2020-07-29T09:08:14.2604183Z INTERNALERROR>     res = hook_impl.function(*args)
2020-07-29T09:08:14.2605034Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/_pytest/main.py", line 306, in pytest_collection
2020-07-29T09:08:14.2605638Z INTERNALERROR>     session.perform_collect()
2020-07-29T09:08:14.2606470Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/_pytest/main.py", line 522, in perform_collect
2020-07-29T09:08:14.2607085Z INTERNALERROR>     hook.pytest_collection_finish(session=self)
2020-07-29T09:08:14.2607953Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/hooks.py", line 286, in __call__
2020-07-29T09:08:14.2608584Z INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
2020-07-29T09:08:14.2609485Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/manager.py", line 93, in _hookexec
2020-07-29T09:08:14.2610102Z INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
2020-07-29T09:08:14.2610996Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/manager.py", line 337, in traced_hookexec
2020-07-29T09:08:14.2611614Z INTERNALERROR>     return outcome.get_result()
2020-07-29T09:08:14.2612456Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/callers.py", line 80, in get_result
2020-07-29T09:08:14.2613209Z INTERNALERROR>     raise ex[1].with_traceback(ex[2])
2020-07-29T09:08:14.2614073Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/callers.py", line 52, in from_call
2020-07-29T09:08:14.2614629Z INTERNALERROR>     result = func()
2020-07-29T09:08:14.2615442Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/manager.py", line 335, in <lambda>
2020-07-29T09:08:14.2616125Z INTERNALERROR>     outcome = _Result.from_call(lambda: oldcall(hook, hook_impls, kwargs))
2020-07-29T09:08:14.2617061Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/manager.py", line 84, in <lambda>
2020-07-29T09:08:14.2617750Z INTERNALERROR>     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
2020-07-29T09:08:14.2618828Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/callers.py", line 208, in _multicall
2020-07-29T09:08:14.2619413Z INTERNALERROR>     return outcome.get_result()
2020-07-29T09:08:14.2620248Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/callers.py", line 80, in get_result
2020-07-29T09:08:14.2620836Z INTERNALERROR>     raise ex[1].with_traceback(ex[2])
2020-07-29T09:08:14.2622251Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/pluggy/callers.py", line 187, in _multicall
2020-07-29T09:08:14.2622916Z INTERNALERROR>     res = hook_impl.function(*args)
2020-07-29T09:08:14.2623887Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/ipatests/pytest_ipa/deprecated_frameworks.py", line 65, in pytest_collection_finish
2020-07-29T09:08:14.2624863Z INTERNALERROR>     xunit_depr_warn(item, 'module', forbidden_module_scopes)
2020-07-29T09:08:14.2625893Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/ipatests/pytest_ipa/deprecated_frameworks.py", line 60, in xunit_depr_warn
2020-07-29T09:08:14.2626511Z INTERNALERROR>     item.warn(
2020-07-29T09:08:14.2627308Z INTERNALERROR>   File "/__w/1/s/.tox/py3/lib/python3.8/site-packages/_pytest/nodes.py", line 231, in warn
2020-07-29T09:08:14.2627899Z INTERNALERROR>     warnings.warn_explicit(
2020-07-29T09:08:14.2628449Z INTERNALERROR> pytest.PytestDeprecationWarning: xunit style is deprecated in favour of fixtures style
2020-07-29T09:08:14.2629101Z 

master:

  • 55b7787 ipatests: Don't turn Pytest IPA deprecation warnings into errors

ipa-4-8:

  • 66216e9 ipatests: Don't turn Pytest IPA deprecation warnings into errors

Metadata Update from @frenaud:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata