Fix test_warnings by making the state of things more consistent for each test
when it is run.
1 file changed