You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=========================== short test summary info ============================
FAILED tests/test_emitter.py::test_move_to - _queue.Empty
FAILED tests/test_emitter.py::test_fast_subdirectory_creation_deletion - _que...
FAILED tests/test_emitter.py::test_recursive_off - _queue.Empty
FAILED tests/test_emitter.py::test_recursive_on - _queue.Empty
FAILED tests/test_emitter.py::test_move_nested_subdirectories - _queue.Empty
FAILED tests/test_fsevents.py::test_watchdog_recursive - AssertionError: Did ...
== 6 failed, 155 passed, 9 skipped, 1 xfailed, 2 xpassed in 274.45s (0:04:34) ==
Command failed with exit code 1
Error:
_______________________ test_move_nested_subdirectories ________________________
p = <bound method Helper.joinpath of Helper(tmp='/private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/pytest-of-builde...tters=[<FSEventsEmitter(Thread-35, started daemon 123145572818944)>], event_queue=<queue.Queue object at 0x10537ce80>)>
event_queue = <queue.Queue object at 0x10537ce80>
start_watching = <bound method Helper.start_watching of Helper(tmp='/private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/pytest-of-...tters=[<FSEventsEmitter(Thread-35, started daemon 123145572818944)>], event_queue=<queue.Queue object at 0x10537ce80>)>
expect_event = <bound method Helper.expect_event of Helper(tmp='/private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/pytest-of-bu...tters=[<FSEventsEmitter(Thread-35, started daemon 123145572818944)>], event_queue=<queue.Queue object at 0x10537ce80>)>
@pytest.mark.skipif(platform.is_windows(), reason="Windows create another set of events for this test")
def test_move_nested_subdirectories(
p: P,
event_queue: TestEventQueue,
start_watching: StartWatching,
expect_event: ExpectEvent,
) -> None:
mkdir(p("dir1/dir2/dir3"), parents=True)
mkfile(p("dir1/dir2/dir3", "a"))
start_watching()
mv(p("dir1/dir2"), p("dir2"))
> expect_event(DirMovedEvent(p("dir1", "dir2"), p("dir2")))
event_queue = <queue.Queue object at 0x10537ce80>
expect_event = <bound method Helper.expect_event of Helper(tmp='/private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/pytest-of-builder/pytest-4130/test_move_nested_subdirectorie0', emitters=[<FSEventsEmitter(Thread-35, started daemon 123145572818944)>], event_queue=<queue.Queue object at 0x10537ce80>)>
p = <bound method Helper.joinpath of Helper(tmp='/private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/pytest-of-builder/pytest-4130/test_move_nested_subdirectorie0', emitters=[<FSEventsEmitter(Thread-35, started daemon 123145572818944)>], event_queue=<queue.Queue object at 0x10537ce80>)>
start_watching = <bound method Helper.start_watching of Helper(tmp='/private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/pytest-of-builder/pytest-4130/test_move_nested_subdirectorie0', emitters=[<FSEventsEmitter(Thread-35, started daemon 123145572818944)>], event_queue=<queue.Queue object at 0x10537ce80>)>
tests/test_emitter.py:513:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/utils.py:93: in expect_event
event = self.event_queue.get(timeout=timeout)[0]
expected_event = DirMovedEvent(src_path='/private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/pytest-of-builder/pytest-4130/test_move_nested_subdirectorie0/dir1/dir2',
dest_path='/private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/pytest-of-builder/pytest-4130/test_move_nested_subdirectorie0/dir2',
event_type='moved',
is_directory=True,
is_synthetic=False)
self = Helper(tmp='/private/var/folders/sy/f16zz6x50xz3113nwtb9bvq00000gp/T/pytest-of-builder/pytest-4130/test_move_nested_subdirectorie0',
emitters=[<FSEventsEmitter(Thread-35, started daemon 123145572818944)>],
event_queue=<queue.Queue object at 0x10537ce80>)
timeout = 2
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <queue.Queue object at 0x10537ce80>, block = True, timeout = 2
def get(self, block=True, timeout=None):
'''Remove and return an item from the queue.
If optional args 'block' is true and 'timeout' is None (the default),
block if necessary until an item is available. If 'timeout' is
a non-negative number, it blocks at most 'timeout' seconds and raises
the Empty exception if no item was available within that time.
Otherwise ('block' is false), return an item if one is immediately
available, else raise the Empty exception ('timeout' is ignored
in that case).
'''
with self.not_empty:
if not block:
if not self._qsize():
raise Empty
elif timeout is None:
while not self._qsize():
self.not_empty.wait()
elif timeout < 0:
raise ValueError("'timeout' must be a non-negative number")
else:
endtime = time() + timeout
while not self._qsize():
remaining = endtime - time()
if remaining <= 0.0:
> raise Empty
E _queue.Empty
block = True
endtime = 22869232.09826587
remaining = -0.007912501692771912
self = <queue.Queue object at 0x10537ce80>
timeout = 2
$PREFIX/lib/python3.10/queue.py:179: Empty
Tests failed:
Error:
Environment:
Tests failed only on osx-64 randomly. watchdog version 4.0.1 is used.
PR: AnacondaRecipes/watchdog-feedstock#10
@BoboTiG Please take a look. Thanks in advance.
The text was updated successfully, but these errors were encountered: