Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
195c26fc
Unverified
Commit
195c26fc
authored
Jun 27, 2025
by
Nick Miller
Committed by
GitHub
Jun 27, 2025
Browse files
[python-package] Add specific error messages to `test_dask` tests (#6955)
parent
e7c6c437
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
tests/python_package_test/test_dask.py
tests/python_package_test/test_dask.py
+4
-1
No files found.
tests/python_package_test/test_dask.py
View file @
195c26fc
...
@@ -1131,7 +1131,10 @@ def test_model_and_local_version_are_picklable_whether_or_not_client_set_explici
...
@@ -1131,7 +1131,10 @@ def test_model_and_local_version_are_picklable_whether_or_not_client_set_explici
local_model
=
dask_model
.
to_local
()
local_model
=
dask_model
.
to_local
()
assert
"client"
not
in
local_model
.
get_params
()
assert
"client"
not
in
local_model
.
get_params
()
with
pytest
.
raises
(
AttributeError
):
no_client_attr_msg
=
re
.
compile
(
f
"
{
repr
(
type
(
local_model
).
__name__
)
}
object has no attribute '(client|client_)'"
)
with
pytest
.
raises
(
AttributeError
,
match
=
no_client_attr_msg
):
local_model
.
client
local_model
.
client
local_model
.
client_
local_model
.
client_
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment