Skip to content

Use astropy.tests.helpers.catch_warnings instead of warnings.catch_warnings#1265

Merged
embray merged 2 commits into
astropy:masterfrom
mdboom:testing/use-catch-warnings
Jul 16, 2013
Merged

Use astropy.tests.helpers.catch_warnings instead of warnings.catch_warnings#1265
embray merged 2 commits into
astropy:masterfrom
mdboom:testing/use-catch-warnings

Conversation

@mdboom

@mdboom mdboom commented Jul 16, 2013

Copy link
Copy Markdown
Contributor

We have a context manager that correctly and completely clears all warning state before catching warnings. We should use that throughout the test suite so that it can be properly parallelized.

Also updates the testing documentation to point this out.

This is in response to me not being around to suggest this in #1174.

@taldcroft

Copy link
Copy Markdown
Member

Looks great to me. Thanks @mdboom for straightening up our mess!

@embray

embray commented Jul 16, 2013

Copy link
Copy Markdown
Member

That looked like "fun".

embray added a commit that referenced this pull request Jul 16, 2013
Use astropy.tests.helpers.catch_warnings instead of warnings.catch_warnings
@embray embray merged commit f7c5660 into astropy:master Jul 16, 2013
@mdboom mdboom deleted the testing/use-catch-warnings branch May 21, 2014 23:57
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.

3 participants