Fix inotify unit tests on BSD based systems

This commit is contained in:
Kristóf Tóth 2019-07-02 16:39:36 +02:00
parent 882ab60490
commit 81accf94ae

View File

@ -7,6 +7,7 @@ from shutil import rmtree
from os.path import join
from os import mkdir, remove, rename
from tempfile import TemporaryDirectory
from contextlib import suppress
import watchdog
import pytest
@ -18,6 +19,7 @@ from .inotify import (
InotifyDirMovedEvent, InotifyDirDeletedEvent
)
with suppress(AttributeError):
watchdog.observers.inotify_buffer.InotifyBuffer.delay = 0