Skip to content

Commit c165032

Browse files
committed
fix?
1 parent 87fb577 commit c165032

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

OMPython/OMCSession.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def unlink(self, missing_ok: bool = False):
404404
res = self._session.sendExpression(f'deleteFile("{self.as_posix()}")')
405405
if not res and not missing_ok:
406406
raise FileNotFoundError(f"Cannot delete file {self.as_posix()} - it does not exists!")
407-
return res
407+
return None
408408

409409
def resolve(self, strict: bool = False):
410410
"""

tests/test_OMCPath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,5 @@ def _run_OMCPath_checks(om: OMPython.OMCSessionZMQ):
7474
assert p3.read_text() == "test"
7575
assert p3.is_file()
7676
assert p3.parent.is_dir()
77-
assert p3.unlink()
77+
assert p3.unlink() is None
7878
assert p3.is_file() is False

0 commit comments

Comments
 (0)