Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
eendebakpt committed Aug 24, 2023
1 parent 4a928aa commit 39ab1ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/test/test_pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,12 @@ def test_pickle_invalid_reducer_override(self):
pickler = pickle._Pickler(bio)
pickler.dump(obj)

pickler.clear_memo()
pickler.reducer_override = None
with self.assertRaises(TypeError):
pickler.dump(obj)

pickler.clear_memo()
pickler.reducer_override = 10
with self.assertRaises(TypeError):
pickler.dump(obj)
Expand Down

0 comments on commit 39ab1ed

Please sign in to comment.