Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pkgs/development/python-modules/watchdog/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ buildPythonPackage rec {
--replace "--cov-report=term-missing" ""
'';

# otherwise "tests/test_inotify_c.py::test_select_fd"
# fails with "OSError: [Errno 24] Too many open files"
preCheck = ''
ulimit -n 4096
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do the other tests open at most 2048 files?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it's actually a bit more than 2048, since pytest itself opens files too, but yes, it's the only test that opens that many files, AFAICS.

'';

pytestFlagsArray =
[
"--deselect=tests/test_emitter.py::test_create_wrong_encoding"
Expand All @@ -61,7 +67,7 @@ buildPythonPackage rec {
# segfaults
"--deselect=tests/test_delayed_queue.py::test_delayed_get"
"--deselect=tests/test_emitter.py::test_delete"
# AttributeError: '_thread.RLock' object has no attribute 'key'"
# AttributeError: '_thread.RLock' object has no attribute 'key'
"--deselect=tests/test_skip_repeats_queue.py::test_eventlet_monkey_patching"
]
++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
Expand Down