Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed

### Fixed
* Removed stale `select_host_device` and `has_host_device` names from `dpctl.__all__`, which made `from dpctl import *` fail with `AttributeError` [gh-2410](https://github.com/IntelPython/dpctl/pull/2410)

### Maintenance

Expand Down
2 changes: 0 additions & 2 deletions dpctl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,11 @@
"select_cpu_device",
"select_default_device",
"select_gpu_device",
"select_host_device",
"select_device_with_aspects",
"get_num_devices",
"has_cpu_devices",
"has_gpu_devices",
"has_accelerator_devices",
"has_host_device",
"get_composite_devices",
]
__all__ += [
Expand Down
6 changes: 6 additions & 0 deletions dpctl/tests/test_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ def test___version__():
assert re.match(reg_expr, dpctl_ver) is not None


def test_star_import():
ns = {}
exec("from dpctl import *", ns)
assert all(name in ns for name in dpctl.__all__)


def test_dev_utils():
import tempfile

Expand Down
Loading