Serhiy Storchaka added the comment: The alternate solution is to remove all references to test instances before calling tearDownClass().
Interesting, that this warning is occurred only in the leak hunting mode. In normal cases test instances are removed from a testsuite, but regrtest hacks unittest and disables this in the leak hunting mode (see the line "unittest.BaseTestSuite._cleanup = False" in Lib/test/libregrtest/setup.py). See issue11798. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30908> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com