8000 Running pytest against non develop install fails · Issue #6973 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Running pytest against non develop install fails #6973
Closed
@jenshnielsen

Description

@jenshnielsen

Running the tests against master. To reproduce do

pip install .
py.test -ra

First problem is that matplotlib.testing.nose isn't installed. That is easy to fix by adding it to setupext.py

But I am not sure what to do about the next problem:

=========================================================================================== test session starts ============================================================================================
platform darwin -- Python 3.5.2, pytest-3.0.1, py-1.4.31, pluggy-0.3.1
rootdir: /Users/jhn/src/python/matplotlib, inifile: pytest.ini
plugins: cov-2.3.1, faulthandler-1.3.0, timeout-1.0.0, xdist-1.15.0
collected 0 items / 67 errors

...

____________________________________________________________________ ERROR collecting lib/matplotlib/sphinxext/tests/test_tinypages.py _____________________________________________________________________
import file mismatch:
imported module 'matplotlib.sphinxext.tests.test_tinypages' has this __file__ attribute:
  /Users/jhn/Envs/mplmaster/lib/python3.5/site-packages/matplotlib/sphinxext/tests/test_tinypages.py
which is not the same as the test file we want to collect:
  /Users/jhn/src/python/matplotlib/lib/matplotlib/sphinxext/tests/test_tinypages.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules

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

      0