浏览代码

test_create_read_special_symlink: fix exception in test cleanup code on FreeBSD, fixes #7386

Thomas Waldmann 2 年之前
父节点
当前提交
a3ab390e59
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/borg/testsuite/archiver/create_cmd.py

+ 3 - 0
src/borg/testsuite/archiver/create_cmd.py

@@ -798,6 +798,9 @@ class ArchiverTestCase(ArchiverTestCaseBase):
             fd = os.open(fifo_fn, os.O_RDONLY | os.O_NONBLOCK)
             fd = os.open(fifo_fn, os.O_RDONLY | os.O_NONBLOCK)
             try:
             try:
                 os.read(fd, len(data))
                 os.read(fd, len(data))
+            except OSError:
+                # fails on FreeBSD 13 with BlockingIOError
+                pass
             finally:
             finally:
                 os.close(fd)
                 os.close(fd)
             t.join()
             t.join()