Skip to content

Commit 535b267

Browse files
committed
Run frozendict pickle tests under all protocols
They were limited to protocol 2+ because frozendict did not pickle at protocols 0 and 1; it does now.
1 parent 07c5278 commit 535b267

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/test/pickletester.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2890,7 +2890,7 @@ def test_recursive_dict_and_inst(self):
28902890
def test_recursive_frozendict_and_inst(self):
28912891
if self.py_version < (3, 15):
28922892
self.skipTest('need frozendict')
2893-
self._test_recursive_collection_and_inst(frozendict.fromkeys, minprotocol=2)
2893+
self._test_recursive_collection_and_inst(frozendict.fromkeys)
28942894

28952895
def test_recursive_set_and_inst(self):
28962896
self._test_recursive_collection_and_inst(set)
@@ -2929,7 +2929,7 @@ def _test_recursive_collection_in_key(self, factory, minprotocol=0):
29292929
def test_recursive_frozendict_in_key(self):
29302930
if self.py_version < (3, 15):
29312931
self.skipTest('need frozendict')
2932-
self._test_recursive_collection_in_key(frozendict, minprotocol=2)
2932+
self._test_recursive_collection_in_key(frozendict)
29332933

29342934
def test_recursive_frozendict_subclass_in_key(self):
29352935
if self.py_version < (3, 15):
@@ -2950,7 +2950,7 @@ def _test_recursive_collection_in_value(self, factory, minprotocol=0):
29502950
def test_recursive_frozendict_in_value(self):
29512951
if self.py_version < (3, 15):
29522952
self.skipTest('need frozendict')
2953-
self._test_recursive_collection_in_value(frozendict, minprotocol=2)
2953+
self._test_recursive_collection_in_value(frozendict)
29542954

29552955
def test_recursive_frozendict_subclass_in_value(self):
29562956
if self.py_version < (3, 15):
@@ -4635,7 +4635,7 @@ def test_fast_save_enter_set(self):
46354635
def test_fast_save_enter_frozendict(self):
46364636
if self.py_version < (3, 15):
46374637
self.skipTest('need frozendict')
4638-
self.fast_save_enter(lambda i: frozendict(key=i), minprotocol=2)
4638+
self.fast_save_enter(lambda i: frozendict(key=i))
46394639

46404640
def test_fast_save_enter_dict(self):
46414641
self.fast_save_enter(lambda i: {"key": i})

0 commit comments

Comments
 (0)