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

Don't change warnings global settings #18

Merged
merged 1 commit into from Dec 22, 2016

Conversation

nedbat
Copy link
Contributor

@nedbat nedbat commented Dec 21, 2016

This line was causing test failures elsewhere in the edx-platform test suite, when warnings were appearing that shouldn't.
@clintonb @mattdrayer Do you know why this line is here? A library function like this shouldn't be changing the global warnings settings.
/cc @gsong

@nedbat
Copy link
Contributor Author

nedbat commented Dec 21, 2016

@clintonb @mattdrayer Do you know why this line is here? A library function like this shouldn't be changing the global warnings settings.
/cc @gsong

@nedbat nedbat force-pushed the ned/dont-fiddle-warnings-settings branch from 3c2f5be to 0033c43 Compare December 21, 2016 19:35
@mattdrayer
Copy link
Contributor

It looks like I'm the one who added this line, but I can't recall any particular reason for doing so. I believe it came about when adding test coverage for a DeprecationWarning workflow.

@mattdrayer
Copy link
Contributor

I guess I'm gonna do this... 👍

Copy link
Contributor

@clintonb clintonb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no clue why this exists.

@andy-armstrong
Copy link

I have to link to @nedbat's excellent blog post about how he diagnosed this problem. Amazing perseverance, Ned!

http://nedbatchelder.com//blog/201612/finding_test_coupling.html

@nedbat nedbat merged commit fe09c91 into master Dec 22, 2016
@nedbat nedbat deleted the ned/dont-fiddle-warnings-settings branch December 22, 2016 18:44
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

4 participants