We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52a2a20 commit f095f11Copy full SHA for f095f11
Lib/test/test_dataclasses/__init__.py
@@ -4103,9 +4103,9 @@ def test_cannot_be_pickled(self):
4103
for klass in [WrongNameMakeDataclass, WrongModuleMakeDataclass]:
4104
for proto in range(pickle.HIGHEST_PROTOCOL + 1):
4105
with self.subTest(proto=proto):
4106
- with self.assertRaises(pickle.PickleError):
+ with self.assertRaises(ModuleNotFoundError):
4107
pickle.dumps(klass, proto)
4108
4109
pickle.dumps(klass(1), proto)
4110
4111
def test_invalid_type_specification(self):
0 commit comments