Summary: | dev-python/pytest-xprocess should depend on pytest-cache | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michal Bukovsky <burlog> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jstein |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53138d9a165883dcb456381ea8c21bd6bcc85c3b commit 53138d9a165883dcb456381ea8c21bd6bcc85c3b Author: Virgil Dupras <vdupras@gentoo.org> AuthorDate: 2018-08-21 01:57:34 +0000 Commit: Virgil Dupras <vdupras@gentoo.org> CommitDate: 2018-08-21 02:09:56 +0000 dev-python/pytest-xprocess: add python 3.7 support * EAPI 7 * Fix broken tests Closes: https://bugs.gentoo.org/644098 Closes: https://bugs.gentoo.org/626328 Package-Manager: Portage-2.3.47, Repoman-2.3.10 .../pytest-xprocess-0.12.1-r1.ebuild | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) |
Reproducing the bug. 1) Remove all pytest pakcages if you have any. 2) Install pytest $ emerge dev-python/pytest 3) Install pytest-xprocess $ emerge -av dev-python/pytest-xprocess 4) Write simple test with xprocess fixture $ cat test_a.py import pytest def test_a(xprocess): assert True 5) Run the pytest $ py.test ================================================================================== test session starts ================================================================================== platform linux -- Python 3.4.5, pytest-3.2.2, py-1.4.34, pluggy-0.4.0 rootdir: /tmp/h, inifile: collected 1 item test_a.py E ======================================================================================== ERRORS ========================================================================================= _______________________________________________________________________________ ERROR at setup of test_a ________________________________________________________________________________ file /tmp/h/test_a.py, line 3 def test_a(xprocess): E fixture 'xprocess' not found > available fixtures: cache, capfd, capsys, doctest_namespace, monkeypatch, pytestconfig, record_xml_property, recwarn, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /tmp/h/test_a.py:3 ================================================================================ 1 error in 0.01 seconds ================================================================================ 6) Install pytest-cache $ emerge -av pytest-cache 7) Run test again $ py.test ================================================================================== test session starts ================================================================================== platform linux -- Python 3.4.5, pytest-3.2.2, py-1.4.34, pluggy-0.4.0 rootdir: /tmp/h, inifile: plugins: xprocess-0.12.1 collected 1 item test_a.py . =============================================================================== 1 passed in 0.02 seconds ================================================================================ So, I think that pytest-xprocess package should depends on pytest-cache package. Thank you