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

Fix test failures when run against TraitsUI 7.1.0 #446

Merged
merged 5 commits into from
Nov 24, 2020

Conversation

kitchoi
Copy link
Contributor

@kitchoi kitchoi commented Nov 24, 2020

Fixes #425

This PR reimplemented a few trivial test utility functions to be used within Enable and Kiva such that tests no longer import from private modules of TraitsUI. See also #443 on to what extent enable/kiva should depend on Pyface/TraitsUI. Dependency is a worse enemy to repeating oneself. The test utilities are so simple that reimplementing them is a cheap cost to enable looser coupling among the packages.

"Test not working on the 'null' backend"
)

skip_if_not_qt = unittest.skipIf(not is_qt(), "Test only for qt")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I took the opportunity to rename qt4 to just qt.

@kitchoi kitchoi merged commit 5a4d88f into master Nov 24, 2020
@jwiggins jwiggins deleted the remove-private-imports branch November 24, 2020 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test failure when run with TraitsUI 7.1.0
2 participants