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

Add cytoolz.utils.dev_skip_test decorator to skip tests for dev versions #23

Merged
merged 3 commits into from
May 6, 2014

Conversation

eriknw
Copy link
Member

@eriknw eriknw commented May 2, 2014

These tests depend on toolz, and it is annoying when toolz changes in the middle of a PR. Now, the things these tests check for only need to be updated before being uploaded to PyPI.

There isn't a test that tests the functionality of this PR. nose was a bit funcy for me, which made such a test a little more difficult than I expected. At present, the method in the PR works for me.

If there is a better way to conditionally skip tests, please share!

…sions.

These tests depend on `toolz`, and it is annoying when `toolz` changes in
the middle of a PR.  Now, the things these tests check for only need to be
updated before being uploaded to PyPI.
@eriknw
Copy link
Member Author

eriknw commented May 2, 2014

Oops, adding dev_skip_test to cytoolz.utils introduces nose as a dependency. We can add the function to a module in "cytoolz/tests/".

eriknw added 2 commits May 3, 2014 16:58
It was in `cytoolz.utils`, which added `nose` as a dependency.
@eriknw
Copy link
Member Author

eriknw commented May 5, 2014

There is probably a better or builtin way to do this with nose, but the current PR works, is simple, and is tested, so I'm going to merge this in a few hours if no comment.

eriknw added a commit that referenced this pull request May 6, 2014
Add `cytoolz.utils.dev_skip_test` decorator to skip tests for dev versions
@eriknw eriknw merged commit 4fbcbd9 into pytoolz:master May 6, 2014
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.

1 participant