-
Notifications
You must be signed in to change notification settings - Fork 55
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
Revert #656 on master branch or improve skipping of tests #662
Comments
It does not seem very difficult to me to be wrapping imports and test case with conditions actually. It has the benefit of skipping the tests even if you are running the test module individually without using But I think the second option of skipping the tests using I'd still advocate we keep compatibility with Traits 6.0. |
Actually, having just had a look at this in some detail, I would strongly recommend using the
|
Indeed that is the awkwardness I run into when I try to release and test the release like this:
I always get a test error due to failure to import wx (likewise for qt if the environment is using wx), and I have to excuse that knowing it is because of the toolkit. Likewise, if we use an environment variable with load_tests for handling traits 6.0, then one will get test errors if they install pyface from pypi along with traits 6.0 (with whatever favourite deployment manager they have). That's not very nice for the majority of users who don't use etstool.py. You want all the tests to pass if they are not skipped. IOW I actually disagree with the existing mechanism, but for toolkit import, the error is more likely to be taken as "expected". For importing traits, it won't be as obvious. |
Having a look at the awkwardness of avoiding problems by skipping tests with Traits 6.0, I would strongly recommend either we:
I'm generally in favour of the first as long as we are good about maintenance releases, as I think it just adds complexity and makes implicit promises that I'm not sure are worth the extra effort.
The text was updated successfully, but these errors were encountered: