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

Cleanup test `warnings` handling #467

Merged
merged 2 commits into from Mar 12, 2012

Conversation

Projects
None yet
2 participants
@rpatterson
Contributor

rpatterson commented Mar 12, 2012

Fixes a 2.7 only faliure and cleans up some other test warnings stuff.

rpatterson added some commits Mar 12, 2012

Switch to the warnings.catch_warnings context manager for testing.
FYI, this test was failing only under 2.7, not 2.6.
Use the warnings.catch_warnings context manager in more places.
Neither 2.7 nor 2.6 with "setup.py test" or "setup.py nosetests" show
warnings that don't already appear for origin/master.  FYI, under 2.6
with nosetests I see:

    nose/loader.py:303: DeprecationWarning: registerView

mmerickel added a commit that referenced this pull request Mar 12, 2012

Merge pull request #467 from rpatterson/master
Cleanup test `warnings` handling

@mmerickel mmerickel merged commit 3117875 into Pylons:master Mar 12, 2012

@mmerickel

This comment has been minimized.

Show comment
Hide comment
@mmerickel

mmerickel Mar 12, 2012

Member

Thanks!

Member

mmerickel commented Mar 12, 2012

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment