plug ref leaks
diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py
index 7ce2b47..944a97d 100644
--- a/Lib/test/test_argparse.py
+++ b/Lib/test/test_argparse.py
@@ -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__':