Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644098 - dev-python/pytest-xprocess should depend on pytest-cache
Summary: dev-python/pytest-xprocess should depend on pytest-cache
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-10 06:32 UTC by Michal Bukovsky
Modified: 2018-08-21 02:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Bukovsky 2018-01-10 06:32:23 UTC
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
Comment 1 Larry the Git Cow gentoo-dev 2018-08-21 02:11:03 UTC
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(+)