plug ref leaks

This commit is contained in:
Benjamin Peterson 2010-03-02 23:43:47 +00:00
parent d23d3930ff
commit 842b95b030
1 changed files with 4 additions and 0 deletions

View File

@ -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__':