Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable TVTK tests if its prerequisites aren't met #764

Merged
merged 2 commits into from
Nov 9, 2020

Conversation

guyer
Copy link
Member

@guyer guyer commented Nov 7, 2020

No description provided.

@guyer guyer added the tests label Nov 7, 2020
@guyer guyer requested review from wd15 and tkphd November 7, 2020 00:10
@guyer
Copy link
Member Author

guyer commented Nov 7, 2020

Ignore the test failures. They're addressed on #721.

# With Python 2.7 end-of-life, bitrot has set in. While tvtk is
# available from conda-forge, it can raise an exception when it
# internally does this import.
from collections.abc import Sequence
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't fully understand why the import is required. If it fails then let it fail and the user gets a warning that it isn't available. How does the extra import impact that?

Copy link
Member Author

@guyer guyer Nov 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we do that then running CI on Python 2.7 is pointless. We'll never get clean pull requests, even though we don't really care about TVTK failures and we know why they happen.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get it. Tvtk always imports, but fails during the run stage so you're trying to make the failure happen during the import stage.

@wd15 wd15 self-requested a review November 9, 2020 19:48
@guyer guyer merged commit b9b9dd0 into usnistgov:master Nov 9, 2020
@guyer guyer deleted the DisableTVTK branch November 10, 2020 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants