Unverified 提交 7fffec61 authored 作者: Thomas Wiecki's avatar Thomas Wiecki 提交者: GitHub

Pickle error message changed (#966)

上级 0ae3cfef
......@@ -254,7 +254,10 @@ def test_config_pickling():
configparser.IntParam(5, lambda i: i > 0),
in_c_key=False,
)
with pytest.raises(AttributeError, match="Can't pickle local object"):
with pytest.raises(
AttributeError,
match="Can't (pickle|get) local object 'test_config_pickling.<locals>.<lambda>'",
):
pickle.dump(root, io.BytesIO())
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论