Skip to content

Commit

Permalink
Set default values for conftest options. (#6067)
Browse files Browse the repository at this point in the history
There is no default being set for `run_ucx` or `run_ucxx`. This results in an error on Python 3.12 (maybe other versions too):

```
AttributeError: 'Namespace' object has no attribute 'run_ucx'. Did you mean: 'run_unit'?
```

This PR adds a default value for those conftest options.

Authors:
  - Bradley Dice (https://github.com/bdice)

Approvers:
  - Divye Gala (https://github.com/divyegala)

URL: #6067
  • Loading branch information
bdice authored Sep 12, 2024
1 parent 90d0622 commit cd19b30
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions python/cuml/cuml/tests/dask/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,17 @@ def pytest_addoption(parser):
group = parser.getgroup("Dask cuML Custom Options")

group.addoption(
"--run_ucx", action="store_true", help="run _only_ UCX-Py tests"
"--run_ucx",
action="store_true",
default=False,
help="run _only_ UCX-Py tests",
)

group.addoption(
"--run_ucxx", action="store_true", help="run _only_ UCXX tests"
"--run_ucxx",
action="store_true",
default=False,
help="run _only_ UCXX tests",
)


Expand Down

0 comments on commit cd19b30

Please sign in to comment.