From: Benjamin Peterson Date: Tue, 2 Mar 2010 23:43:47 +0000 (+0000) Subject: plug ref leaks X-Git-Tag: v2.7a4~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=842b95b0303bff887862e70cac7fc0e3cb4b32ed;p=python plug ref leaks --- diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py index 7ce2b47d82..944a97d392 100644 --- a/Lib/test/test_argparse.py +++ b/Lib/test/test_argparse.py @@ -4178,6 +4178,10 @@ def test_main(): 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__':