Skip to content

Commit f095f11

Browse files
author
Matthew Hoffman
committed
Update error type
1 parent 52a2a20 commit f095f11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_dataclasses/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4103,9 +4103,9 @@ def test_cannot_be_pickled(self):
41034103
for klass in [WrongNameMakeDataclass, WrongModuleMakeDataclass]:
41044104
for proto in range(pickle.HIGHEST_PROTOCOL + 1):
41054105
with self.subTest(proto=proto):
4106-
with self.assertRaises(pickle.PickleError):
4106+
with self.assertRaises(ModuleNotFoundError):
41074107
pickle.dumps(klass, proto)
4108-
with self.assertRaises(pickle.PickleError):
4108+
with self.assertRaises(ModuleNotFoundError):
41094109
pickle.dumps(klass(1), proto)
41104110

41114111
def test_invalid_type_specification(self):

0 commit comments

Comments
 (0)