Skip to content

Commit 30f2a44

Browse files
authored
Pickle error message changed
1 parent 0ae3cfe commit 30f2a44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ 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(AttributeError, match="Can't get local object 'test_config_pickling.<locals>.<lambda>'"):
258258
pickle.dump(root, io.BytesIO())
259259

260260

0 commit comments

Comments
 (0)