Skip to content

Commit cabecaf

Browse files
Modified test_syclinterface to pass with SOVERSION off
The test would still pass when it is turned back on and symbolic links are present.
1 parent 419969c commit cabecaf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dpctl/tests/test_service.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,11 @@ def test_syclinterface(should_skip_syclinterface):
163163
if should_skip_syclinterface:
164164
pass
165165
else:
166-
assert len(paths) > 1 and any(
167-
[os.path.islink(fn) for fn in paths]
168-
), "All library instances are hard links"
166+
len_p = len(paths)
167+
n_symlinks = sum([int(os.path.islink(fn)) for fn in paths])
168+
assert len_p == 1 + n_symlinks, (
169+
"Multiple library instances are hard links",
170+
)
169171
elif sys.platform in ["win32", "cygwin"]:
170172
exts = []
171173
for fn in paths:

0 commit comments

Comments
 (0)