Antoine Pitrou added the comment: > If the object state includes mutable objects then restoring the > previous dictionary will just restore the same mutable (and likely > mutated) object.
I don't understand what you're talking about. Which mutable objects exactly? I'm talking about copying the dict before setUp. > >> Obviously > >> sharing state between tests is prima facie bad, but any framework > >> reusing test suites is doing that already. > > > > What do you mean? > > Any framework that is currently reusing test suites is re-using > testcase instances. They are already sharing state between the runs. They are not sharing it, since setUp will usually create the state anew. What we're talking about is cleaning up the state after tearDown is run, instead of waiting for the next setUp call. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11798> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com