[Python-checkins] r78604 - python/trunk/Lib/test/test_argparse.py
benjamin.peterson
python-checkins at python.org
Wed Mar 3 00:43:47 CET 2010
Author: benjamin.peterson
Date: Wed Mar 3 00:43:47 2010
New Revision: 78604
Log:
plug ref leaks
Modified:
python/trunk/Lib/test/test_argparse.py
Modified: python/trunk/Lib/test/test_argparse.py
==============================================================================
--- python/trunk/Lib/test/test_argparse.py (original)
+++ python/trunk/Lib/test/test_argparse.py Wed Mar 3 00:43:47 2010
@@ -4178,6 +4178,10 @@
category=DeprecationWarning)
test_support.run_unittest(__name__)
+ # Remove global references to avoid looking like we have refleaks.
+ RFile.seen = {}
+ WFile.seen = set()
+
if __name__ == '__main__':
More information about the Python-checkins
mailing list