Skip to content

Fix test failures when run against TraitsUI 7.1.0#446

Merged
kitchoi merged 5 commits into
masterfrom
remove-private-imports
Nov 24, 2020
Merged

Fix test failures when run against TraitsUI 7.1.0#446
kitchoi merged 5 commits into
masterfrom
remove-private-imports

Conversation

@kitchoi

@kitchoi kitchoi commented Nov 24, 2020

Copy link
Copy Markdown
Contributor

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.

Comment thread enable/tests/_testing.py
"Test not working on the 'null' backend"
)

skip_if_not_qt = unittest.skipIf(not is_qt(), "Test only for qt")

Copy link
Copy Markdown
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