Skip to content

Running pytest against non develop install fails #6973

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy