mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 18:31:33 +00:00
Fix inotify unit tests on BSD based systems
This commit is contained in:
parent
882ab60490
commit
81accf94ae
@ -7,6 +7,7 @@ from shutil import rmtree
|
|||||||
from os.path import join
|
from os.path import join
|
||||||
from os import mkdir, remove, rename
|
from os import mkdir, remove, rename
|
||||||
from tempfile import TemporaryDirectory
|
from tempfile import TemporaryDirectory
|
||||||
|
from contextlib import suppress
|
||||||
|
|
||||||
import watchdog
|
import watchdog
|
||||||
import pytest
|
import pytest
|
||||||
@ -18,7 +19,8 @@ from .inotify import (
|
|||||||
InotifyDirMovedEvent, InotifyDirDeletedEvent
|
InotifyDirMovedEvent, InotifyDirDeletedEvent
|
||||||
)
|
)
|
||||||
|
|
||||||
watchdog.observers.inotify_buffer.InotifyBuffer.delay = 0
|
with suppress(AttributeError):
|
||||||
|
watchdog.observers.inotify_buffer.InotifyBuffer.delay = 0
|
||||||
|
|
||||||
|
|
||||||
class InotifyContext:
|
class InotifyContext:
|
||||||
|
Loading…
Reference in New Issue
Block a user