Skip to content

Commit efcfcd9

Browse files
fix the error from black and remove one test
1 parent 935a2a1 commit efcfcd9

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

dpctl/tests/test_dparray.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@ def test_multiplication_dparray(self):
2828
C = self.X * 5
2929
self.assertIsInstance(C, dparray.ndarray)
3030

31-
def test_dparray_through_python_func(self):
32-
def func_operation_with_const(dpctl_array):
33-
return dpctl_array * 2.0 + 13
34-
35-
C = self.X * 5
36-
dp_func = func_operation_with_const(C)
37-
self.assertIsInstance(dp_func, dparray.ndarray)
38-
3931
def test_dparray_mixing_dpctl_and_numpy(self):
4032
dp_numpy = numpy.ones((256, 4), dtype="d")
4133
res = dp_numpy * self.X

setup.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ def extensions():
148148
runtime_library_dirs = []
149149

150150
extension_args = {
151-
"depends": [dppl_sycl_interface_include,],
151+
"depends": [
152+
dppl_sycl_interface_include,
153+
],
152154
"include_dirs": [np.get_include(), dppl_sycl_interface_include],
153155
"extra_compile_args": eca
154156
+ get_other_cxxflags()
@@ -163,12 +165,16 @@ def extensions():
163165
extensions = [
164166
Extension(
165167
"dpctl._sycl_core",
166-
[os.path.join("dpctl", "_sycl_core.pyx"),],
168+
[
169+
os.path.join("dpctl", "_sycl_core.pyx"),
170+
],
167171
**extension_args
168172
),
169173
Extension(
170174
"dpctl.memory._memory",
171-
[os.path.join("dpctl", "memory", "_memory.pyx"),],
175+
[
176+
os.path.join("dpctl", "memory", "_memory.pyx"),
177+
],
172178
**extension_args
173179
),
174180
]

0 commit comments

Comments
 (0)