Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Tests not independent of each other #4772

Copy link
Copy link
Closed
@OceanWolf

Description

@OceanWolf
Issue body actions

Opening an issue on this to track progress and get insight from other people.

I have just been playing with tests on my own system, and I have discovered that the tests don't run fully independently of each other...

So far, I have only discovered problems with different backends getting used, for example in test_backend_qt4.py we have a few tests that have :

plt.switch_backend('Qt4Agg')

test_backend_pgf.py seems to have the solution to this with a generic decorator, and it feels odd that such a beautifully generic decorator appears in a very specific class and doesn't get used elsewhere.

Anyway I shall make a PR to correct this backend thing and hope we have no other inter-dependancies, but in the meantime, some questions:

  1. Why don't we reset everything at the beginning of each test anyway, we have a setup() function that should do this?
  2. Do we have an easy way to print debug information for tests? I.e. specific rcParams? This will help debugging future issues like this (touch wood we don't get any).

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.