From e20c2f7b94851762537af80a88b3a117be0f1ac7 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 26 Jan 2021 14:47:00 +0100 Subject: [PATCH] Remove wrong-encoding tests Unfortunately #703 cannot easily be backported, so we won't have this functionality in the Python 2.7 / 3.5 branch unless someone reports this as an issue. --- changelog.rst | 1 - tests/test_emitter.py | 19 ------------------- 2 files changed, 20 deletions(-) diff --git a/changelog.rst b/changelog.rst index d3ddda93f..ed9346602 100644 --- a/changelog.rst +++ b/changelog.rst @@ -65,7 +65,6 @@ Changelog - [windows] ``winapi.BUFFER_SIZE`` now defaults to ``64000`` (instead of ``2048``) (`#700 `_) - [windows] Introduced ``winapi.PATH_BUFFER_SIZE`` (defaults to ``2048``) to keep the old behavior with path-realted functions (`#700 `_) - Use ``pathlib`` from the standard library, instead of pathtools (`#556 `_) -- Allow file paths on Unix that don't follow the file system encoding (`#703 `_) - Removed the long-time deprecated ``events.LoggingFileSystemEventHandler`` class, use ``LoggingEventHandler`` instead - Thanks to our beloved contributors: @SamSchott, @bstaletic, @BoboTiG, @CCP-Aporia diff --git a/tests/test_emitter.py b/tests/test_emitter.py index 615624a49..469221e65 100644 --- a/tests/test_emitter.py +++ b/tests/test_emitter.py @@ -180,25 +180,6 @@ def test_close(): assert event_queue.empty() -@pytest.mark.flaky(max_runs=5, min_passes=1, rerun_filter=rerun_filter) -@pytest.mark.skipif( - platform.is_darwin() or platform.is_windows(), - reason="Windows and macOS enforce proper encoding" -) -def test_create_wrong_encoding(): - start_watching() - open(p('a_\udce4'), 'a').close() - - event = event_queue.get(timeout=5)[0] - assert event.src_path == p('a_\udce4') - assert isinstance(event, FileCreatedEvent) - - if not platform.is_windows(): - event = event_queue.get(timeout=5)[0] - assert os.path.normpath(event.src_path) == os.path.normpath(p('')) - assert isinstance(event, DirModifiedEvent) - - @pytest.mark.flaky(max_runs=5, min_passes=1, rerun_filter=rerun_filter) def test_delete(): touch(p('a'))