File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed
Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 4141 with :
4242 src : " ."
4343 options : " --check"
44+ version : " 22.12.0"
4445
4546 flake8 :
4647 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ repos:
1313 - id : end-of-file-fixer
1414 - id : trailing-whitespace
1515- repo : https://github.com/psf/black
16- rev : 22.10 .0
16+ rev : 22.12 .0
1717 hooks :
1818 - id : black
1919 exclude : " versioneer.py|dpctl/_version.py"
2020- repo : https://github.com/pycqa/isort
21- rev : 5.10.1
21+ rev : 5.12.0
2222 hooks :
2323 - id : isort
2424 name : isort (python)
Original file line number Diff line number Diff line change @@ -290,6 +290,11 @@ cdef class SyclQueue(_SyclQueue):
290290 props = _parse_queue_properties(
291291 kwargs.pop(' property' , _queue_property_type._DEFAULT_PROPERTY)
292292 )
293+ if (kwargs):
294+ raise TypeError (
295+ f" Unsupported keyword arguments {kwargs} to "
296+ " SyclQueue constructor encountered."
297+ )
293298 len_args = len (args)
294299 if len_args == 0 :
295300 status = self ._init_queue_default(props)
Original file line number Diff line number Diff line change @@ -84,6 +84,14 @@ def test_invalid_filter_selectors(invalid_filter):
8484 dpctl .SyclQueue (invalid_filter )
8585
8686
87+ def test_unexpected_keyword ():
88+ """
89+ An unexpected keyword use raises TypeError.
90+ """
91+ with pytest .raises (TypeError ):
92+ dpctl .SyclQueue (device = "cpu" )
93+
94+
8795def test_context_not_equals ():
8896 try :
8997 gpuQ = dpctl .SyclQueue ("gpu" )
You can’t perform that action at this time.
0 commit comments