warnings.resetwarnings() should never be called by tests.
Doing so wipes out all the warning filters other tests may set up to suppress warnings those tests need to provoke but want to hide from the entity running the tests. This stops all the DeprecationWarnings that were displayed from the ZODB and ZEO tests when running Zope trunk's test suite.
Showing
Please register or sign in to comment