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

Fixed #25745 -- Promoted RuntimeWarnings to errors in the test suite. #5652

Merged
merged 5 commits into from Nov 14, 2015

Conversation

charettes
Copy link
Member

No description provided.

@charettes
Copy link
Member Author

This patch focuses on being non-invasive (for the backport to 1.8) but the schema tests would definitely benefit from a refactoring. I spent way more time than expected trying to figure out which bits to flip.

@@ -417,15 +421,21 @@ class Child(models.Model):
related_name='children',
)

class Meta:
apps = apps = test_apps
Copy link
Member

Choose a reason for hiding this comment

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

extra apps =

@charettes
Copy link
Member Author

@timgraham what should be done in regard to tests that make sure RuntimeWarning are raised? Should they be adapted to catch them directly now?

@timgraham
Copy link
Member

Yes, you can probably make them use assertRaisesMessage instead. I don't mind if that commit isn't backported if it proves troublesome.

@charettes charettes force-pushed the ticket-25745-runtimewaring-errors branch from 174b001 to 9193a3c Compare November 13, 2015 22:41
@charettes
Copy link
Member Author

Should be easy to backport if required.

@charettes charettes changed the title Promoted RuntimeWarnings to errors in the test suite. Fixed #25745 -- Promoted RuntimeWarnings to errors in the test suite. Nov 13, 2015
@charettes charettes force-pushed the ticket-25745-runtimewaring-errors branch 2 times, most recently from 2397c1e to 580bbfb Compare November 14, 2015 00:54
@charettes
Copy link
Member Author

Comments addressed.

@charettes
Copy link
Member Author

I'll merge tomorrow if you don't beat me to it.

@charettes charettes force-pushed the ticket-25745-runtimewaring-errors branch from 580bbfb to 1c5f4e8 Compare November 14, 2015 16:33
@charettes charettes merged commit 1c5f4e8 into django:master Nov 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants