Skip to content

Commit f40fbc0

Browse files
committed
test: remove unused code
1 parent 3730c02 commit f40fbc0

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎Lib/test/test_capi/test_set.py‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,6 @@ def create_writer(self, size=0):
285285
# Test PyFrozenSetWriter_Create()
286286
return _testcapi.PyFrozenSetWriter(size)
287287

288-
def compute_table_size(self, size):
289-
table_size = self.PySet_MINSIZE
290-
while table_size <= size:
291-
table_size <<= 1
292-
return table_size
293-
294288
def frozenset_equal(self, result, expected):
295289
if not isinstance(expected, frozenset):
296290
expected = frozenset(expected)
@@ -321,7 +315,6 @@ def create_items(self, nitem):
321315

322316
def check_add_method(self, add_method):
323317
items = self.create_items(self.PySet_MINSIZE * 2 - 1)
324-
table_size = self.compute_table_size(len(items))
325318
for prealloc in (0, len(items) // 2, len(items), len(items) * 10):
326319
with self.subTest(prealloc=prealloc):
327320
writer = self.create_writer()

0 commit comments

Comments
 (0)