Skip to content

Commit c6c48cd

Browse files
authored
Delete test_file.FileTest.test_file_manager_leak (#1916)
1 parent 7a3107c commit c6c48cd

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

tests/suite/test_file.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -502,20 +502,6 @@ def return_fd2():
502502
f.close()
503503
self.assertRaises(OSError, os.fdopen, fd)
504504

505-
def test_file_manager_leak(self):
506-
# the number of iterations should be larger than Microsoft.Scripting.Utils.HybridMapping.SIZE (currently 4K)
507-
N = 5000
508-
for i in range(N):
509-
fd = os.open(self.temp_file, os.O_WRONLY | os.O_CREAT | os.O_TRUNC)
510-
f = os.fdopen(fd, 'w', closefd=True)
511-
f.close()
512-
513-
for i in range(N):
514-
fd = os.open(self.temp_file, os.O_WRONLY | os.O_CREAT | os.O_TRUNC)
515-
f = os.fdopen(fd, 'w', closefd=False)
516-
g = os.fdopen(f.fileno(), 'w', closefd=True)
517-
g.close()
518-
519505
def test_sharing(self):
520506
modes = ['w', 'w+', 'a+', 'r', 'w']
521507
fname = self.temp_file

0 commit comments

Comments
 (0)