pytest failing with new v6.0.0
Acribbs opened this issue · 1 comments
Acribbs commented
Have temporarily fixed condo deposit for purest<=5.4.3 because of following issue:
==================================== ERRORS ====================================
1160________________________ ERROR collecting test session _________________________
1161conda-install/envs/cgat-core/lib/python3.8/site-packages/pluggy/hooks.py:286: in __call__
1162 return self._hookexec(self, self.get_hookimpls(), kwargs)
1163conda-install/envs/cgat-core/lib/python3.8/site-packages/pluggy/manager.py:93: in _hookexec
1164 return self._inner_hookexec(hook, methods, kwargs)
1165conda-install/envs/cgat-core/lib/python3.8/site-packages/pluggy/manager.py:84: in <lambda>
1166 self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
1167conda-install/envs/cgat-core/lib/python3.8/site-packages/pytest_pep8.py:38: in pytest_collect_file
1168 return Pep8Item(path, parent, pep8ignore, config._max_line_length)
1169conda-install/envs/cgat-core/lib/python3.8/site-packages/_pytest/nodes.py:95: in __call__
1170 warnings.warn(NODE_USE_FROM_PARENT.format(name=self.__name__), stacklevel=2)
1171E pytest.PytestDeprecationWarning: Direct construction of Pep8Item has been deprecated, please use Pep8Item.from_parent.
1172E See https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent for more details.
Without pinning pytest=6.0.0=py38h32f6830_0 fails. Code needs to be updated. Also, need to remove pep8 and move to pycodestyle