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
Fix for refleak tests #45755
Comments
The patch prevents some tests from running multiple times in a test session. |
Hm, I was hoping more for patches to the C code that would make these |
Here is a version of test_freeze that doesn't depend on stdout output on |
Please check in the frozen-related fixes. Your changes to test_tcl break that test even when run without -R! For test_pkg, I would rather see a fix that undoes all the changes to |
How do you like; class TestPkg(unittest.TestCase):
def setUp(self):
self.root = None
self.syspath = list(sys.path)
self.sysmodules = sys.modules.copy()
def tearDown(self):
sys.path[:] = self.syspath
sys.modules.clear()
sys.modules.update(self.sysmodules)
del self.sysmodules
cleanout(self.root) Or I could use the paranoid approach: create set from sys.modules.keys() |
Fix for test_frozen comitted in r58953 |
If that makes the test pass with and without -R::, go for it! On Nov 12, 2007 11:14 AM, Christian Heimes <report@bugs.python.org> wrote:
|
ping? |
I don't know how to fix the problem. You have to assign the bug to |
Can you open a separate item for the Tkinter leak so you can close this one? |
The bug report for test_tcl is at http://bugs.python.org/issue1532 |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: