Skip to content

0.8.1 incompatible with pytest-qt + pytest-cov on travis #22

@Sheeo

Description

@Sheeo

When both pytest-qt and pytest-cov are installed, none of the py test plugins are picked up by py.test --fixtures .

Only happens if all three plugins are loaded. Unclear if this is pytest-mock's fault, pytest-cov, pytest-qt or py.test's fault.

Minimally failing travis build here: https://travis-ci.org/FAForever/server/builds/88285397

Log output:

    $ python --version
    Python 3.5.0
    $ pip --version
    pip 7.1.2 from /home/travis/virtualenv/python3.5.0/lib/python3.5/site-packages (python 3.5)
    install
    4.04s$ pip install --use-wheel pytest-mock pytest-qt pytest-cov
    Collecting pytest-mock
      Downloading pytest_mock-0.8.1-py2.py3-none-any.whl
    Collecting pytest-qt
      Downloading pytest_qt-1.8.0-py2.py3-none-any.whl
    Collecting pytest-cov
      Downloading pytest_cov-2.2.0-py2.py3-none-any.whl
    Requirement already satisfied (use --upgrade to upgrade): pytest>=2.4 in /home/travis/virtualenv/python3.5.0/lib/python3.5/site-packages (from pytest-mock)
    Collecting coverage>=3.7.1 (from pytest-cov)
      Downloading coverage-4.0.1.tar.gz (349kB)
        100% |████████████████████████████████| 352kB 756kB/s
    Requirement already satisfied (use --upgrade to upgrade): py>=1.4.29 in /home/travis/virtualenv/python3.5.0/lib/python3.5/site-packages (from pytest>=2.4->pytest-mock)
    Building wheels for collected packages: coverage
      Running setup.py bdist_wheel for coverage
      Stored in directory: /home/travis/.cache/pip/wheels/3d/2d/5f/5e812a155cc0752a0f99157ee14aebbcd87b8d425083f463f5
    Successfully built coverage
    Installing collected packages: pytest-mock, pytest-qt, coverage, pytest-cov
    Successfully installed coverage-4.0.1 pytest-cov-2.2.0 pytest-mock-0.8.1 pytest-qt-1.8.0
    0.55s$ py.test --fixtures . | grep mock
    The command "py.test --fixtures . | grep mock" exited with 1.
    Done. Your build exited with 1.

Confirmed working with pytest-mock==0.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions