Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
eendebakpt committed Aug 28, 2023
1 parent c803480 commit 7f3ee96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/pickletester.py
Original file line number Diff line number Diff line change
Expand Up @@ -2416,7 +2416,7 @@ def test_reduce_ex_None(self):
def test_reduce_None(self):
c = R_None()
with self.assertRaises(TypeError):
pickle.dumps(c)
self.dumps(c)

def test_pickle_setstate_None(self):
c = C_None_setstate()
Expand Down Expand Up @@ -3373,6 +3373,7 @@ class R_None:
__reduce__ = None

class C_None_setstate:
""" Setting __setstate__ to None should fail """
def __getstate__(self):
return 1

Expand Down

0 comments on commit 7f3ee96

Please sign in to comment.