Skip to content

Commit 521b8ca

Browse files
twieckiIan Schweer
authored and
Ian Schweer
committed
Pickle error message changed (pymc-devs#966)
1 parent bd38216 commit 521b8ca

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)