python3Packages.watchdog: remove ineffective test deselection and use `disabledTestPaths` for remaining test deselection (#424799)

authored by Martin Weinelt and committed by GitHub dc0dec58 f2c39ef8

+25 -33
+25 -33
pkgs/development/python-modules/watchdog/default.nix
··· 37 ++ optional-dependencies.watchmedo 38 ++ lib.optionals (pythonOlder "3.13") [ eventlet ]; 39 40 - pytestFlagsArray = 41 [ 42 - "--deselect=tests/test_emitter.py::test_create_wrong_encoding" 43 - "--deselect=tests/test_emitter.py::test_close" 44 # assert cap.out.splitlines(keepends=False).count('+++++ 0') == 2 != 3 45 - "--deselect=tests/test_0_watchmedo.py::test_auto_restart_on_file_change_debounce" 46 ] 47 ++ lib.optionals (stdenv.hostPlatform.isDarwin) [ 48 # fails to stop process in teardown 49 - "--deselect=tests/test_0_watchmedo.py::test_auto_restart_subprocess_termination" 50 ] 51 ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ 52 # FileCreationEvent != FileDeletionEvent 53 - "--deselect=tests/test_emitter.py::test_separate_consecutive_moves" 54 - "--deselect=tests/test_observers_polling.py::test___init__" 55 # segfaults 56 - "--deselect=tests/test_delayed_queue.py::test_delayed_get" 57 - "--deselect=tests/test_emitter.py::test_delete" 58 # AttributeError: '_thread.RLock' object has no attribute 'key'" 59 - "--deselect=tests/test_skip_repeats_queue.py::test_eventlet_monkey_patching" 60 ] 61 ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ 62 # segfaults 63 - "--deselect=tests/test_delayed_queue.py::test_delayed_get" 64 - "--deselect=tests/test_0_watchmedo.py::test_tricks_from_file" 65 - "--deselect=tests/test_fsevents.py::test_watcher_deletion_while_receiving_events_1" 66 - "--deselect=tests/test_fsevents.py::test_watcher_deletion_while_receiving_events_2" 67 - "--deselect=tests/test_skip_repeats_queue.py::test_eventlet_monkey_patching" 68 - "--deselect=tests/test_fsevents.py::test_recursive_check_accepts_relative_paths" 69 # fsevents:fsevents.py:318 Unhandled exception in FSEventsEmitter 70 - "--deselect=tests/test_fsevents.py::test_watchdog_recursive" 71 # SystemError: Cannot start fsevents stream. Use a kqueue or polling observer... 72 - "--deselect=tests/test_fsevents.py::test_add_watch_twice" 73 - # fsevents:fsevents.py:318 Unhandled exception in FSEventsEmitter 74 - "--deselect=ests/test_fsevents.py::test_recursive_check_accepts_relative_paths" 75 # gets stuck 76 - "--deselect=tests/test_fsevents.py::test_converting_cfstring_to_pyunicode" 77 - ]; 78 - 79 - disabledTestPaths = 80 - [ 81 - # tests timeout easily 82 - "tests/test_inotify_buffer.py" 83 - ] 84 - ++ lib.optionals (stdenv.hostPlatform.isDarwin) [ 85 - # segfaults the testsuite 86 - "tests/test_emitter.py" 87 - # unsupported on x86_64-darwin 88 - "tests/test_fsevents.py" 89 ]; 90 91 pythonImportsCheck = [ "watchdog" ];
··· 37 ++ optional-dependencies.watchmedo 38 ++ lib.optionals (pythonOlder "3.13") [ eventlet ]; 39 40 + disabledTestPaths = 41 [ 42 + "tests/test_emitter.py::test_create_wrong_encoding" 43 + "tests/test_emitter.py::test_close" 44 + # tests timeout easily 45 + "tests/test_inotify_buffer.py" 46 # assert cap.out.splitlines(keepends=False).count('+++++ 0') == 2 != 3 47 + "tests/test_0_watchmedo.py::test_auto_restart_on_file_change_debounce" 48 ] 49 ++ lib.optionals (stdenv.hostPlatform.isDarwin) [ 50 + # segfaults the testsuite 51 + "tests/test_emitter.py" 52 + # unsupported on x86_64-darwin 53 + "tests/test_fsevents.py" 54 # fails to stop process in teardown 55 + "tests/test_0_watchmedo.py::test_auto_restart_subprocess_termination" 56 ] 57 ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ 58 # FileCreationEvent != FileDeletionEvent 59 + "tests/test_emitter.py::test_separate_consecutive_moves" 60 + "tests/test_observers_polling.py::test___init__" 61 # segfaults 62 + "tests/test_delayed_queue.py::test_delayed_get" 63 + "tests/test_emitter.py::test_delete" 64 # AttributeError: '_thread.RLock' object has no attribute 'key'" 65 + "tests/test_skip_repeats_queue.py::test_eventlet_monkey_patching" 66 ] 67 ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ 68 # segfaults 69 + "tests/test_delayed_queue.py::test_delayed_get" 70 + "tests/test_0_watchmedo.py::test_tricks_from_file" 71 + "tests/test_fsevents.py::test_watcher_deletion_while_receiving_events_1" 72 + "tests/test_fsevents.py::test_watcher_deletion_while_receiving_events_2" 73 + "tests/test_skip_repeats_queue.py::test_eventlet_monkey_patching" 74 + "tests/test_fsevents.py::test_recursive_check_accepts_relative_paths" 75 # fsevents:fsevents.py:318 Unhandled exception in FSEventsEmitter 76 + "tests/test_fsevents.py::test_watchdog_recursive" 77 # SystemError: Cannot start fsevents stream. Use a kqueue or polling observer... 78 + "tests/test_fsevents.py::test_add_watch_twice" 79 # gets stuck 80 + "tests/test_fsevents.py::test_converting_cfstring_to_pyunicode" 81 ]; 82 83 pythonImportsCheck = [ "watchdog" ];