mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
plug ref leaks
This commit is contained in:
parent
d23d3930ff
commit
842b95b030
1 changed files with 4 additions and 0 deletions
|
@ -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__':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue