Skip to content

Commit 7fffec6

Browse files
authored
Pickle error message changed (#966)
1 parent 0ae3cfe commit 7fffec6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,10 @@ def test_config_pickling():
254254
configparser.IntParam(5, lambda i: i > 0),
255255
in_c_key=False,
256256
)
257-
with pytest.raises(AttributeError, match="Can't pickle local object"):
257+
with pytest.raises(
258+
AttributeError,
259+
match="Can't (pickle|get) local object 'test_config_pickling.<locals>.<lambda>'",
260+
):
258261
pickle.dump(root, io.BytesIO())
259262

260263

0 commit comments

Comments
 (0)