From dd04802eb179fdc465310ecaca77dbfe18ac1617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20K=C5=82oczko?= <31284574+kloczek@users.noreply.github.com> Date: Mon, 6 May 2024 09:07:18 +0100 Subject: [PATCH] really drop python<=3.7 support (#264) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomasz Kłoczko --- tests/test_watch.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_watch.py b/tests/test_watch.py index 1b0187cc..5dd064c0 100644 --- a/tests/test_watch.py +++ b/tests/test_watch.py @@ -22,7 +22,7 @@ def test_watch(tmp_path: Path, write_soon): for changes in watch(tmp_path, debounce=50, step=10, watch_filter=None): break - assert changes == {(Change.added, str((tmp_path / 'foo.txt')))} + assert changes == {(Change.added, str(tmp_path / 'foo.txt'))} def test_wait_stop_event(tmp_path: Path, write_soon): @@ -31,7 +31,7 @@ def test_wait_stop_event(tmp_path: Path, write_soon): stop_event = threading.Event() for changes in watch(tmp_path, debounce=50, step=10, watch_filter=None, stop_event=stop_event): - assert changes == {(Change.added, str((tmp_path / 'foo.txt')))} + assert changes == {(Change.added, str(tmp_path / 'foo.txt'))} stop_event.set() @@ -39,7 +39,7 @@ async def test_awatch(tmp_path: Path, write_soon): sleep(0.05) write_soon(tmp_path / 'foo.txt') async for changes in awatch(tmp_path, debounce=50, step=10, watch_filter=None): - assert changes == {(Change.added, str((tmp_path / 'foo.txt')))} + assert changes == {(Change.added, str(tmp_path / 'foo.txt'))} break @@ -49,7 +49,7 @@ async def test_await_stop_event(tmp_path: Path, write_soon): write_soon(tmp_path / 'foo.txt') stop_event = anyio.Event() async for changes in awatch(tmp_path, debounce=50, step=10, watch_filter=None, stop_event=stop_event): - assert changes == {(Change.added, str((tmp_path / 'foo.txt')))} + assert changes == {(Change.added, str(tmp_path / 'foo.txt'))} stop_event.set()