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

Skip tests broken for specific or all platforms #155

Merged

Conversation

gotgenes
Copy link

This pull requests contains changes to skip over several brittle tests brought in with pull request #66. Several of these tests cause the Travis CI jobs to fail on Python 3 and PyPy, as seen in the job following the accepted pull request. These changes will restore the Travis CI jobs to passing status, but with the acknowledgment that certain tests were skipped for certain platforms (Python 3 or PyPy).

This pull request also changes the reporting of several tests aborted by early return statements from the specious status of "ok" to the more accurate status of "skipped".

As the fragility of these tests gets addressed, the skipped status can be removed. For right now, it will help developers to have those tests skipped rather than force them to always expect failing tests and have to parse through the output to see if it includes one of their new tests or not.

This pull request also introduces a new dependency for Python 2.6, the unittest2 backport, for the @unittest.skip and @unittest.skipUnless decorators.

Decorates tests that are potentially skipped, as well as broken tests
that are always skipped, as being skipped, rather than indicating
falsely that these tests have passed (the result of premature return
statements prior to any assertions in the tests).

This introduces another dependency for Python 2.6, the unittest2 module,
which back-ported this functionality from Python 2.7 and Python 3.
@martijnvermaat
Copy link
Collaborator

This is very helpful, thanks a lot!

martijnvermaat added a commit that referenced this pull request May 14, 2014
Skip tests broken for specific or all platforms
@martijnvermaat martijnvermaat merged commit 1842c48 into jamescasbon:master May 14, 2014
@gotgenes gotgenes deleted the feature-indicate_skipped_tests branch May 14, 2014 15:27
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.

None yet

2 participants