Skip to content

Commit 83c8818

Browse files
authored
Update test_xcpp_kernel.py
1 parent eb2e7c0 commit 83c8818

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test_xcpp_kernel.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,10 @@ def test_xcpp_omp(self):
268268

269269
for name in kernel_names:
270270
class_name = f"XCppOpenMPTests_{name}"
271-
language_name = 'C++' if 'xcpp' in name else 'c'
271+
if 'xcpp' in name:
272+
language_name = 'C++'
273+
else:
274+
language_name = 'c'
272275
globals()[class_name] = type(
273276
class_name,
274277
(BaseXCppOpenMPTests,),

0 commit comments

Comments
 (0)