[issue33036] test_selectors.PollSelectorTestCase failing on macOS 10.13.3

2018-03-20 Thread Nathan Henrie
Nathan Henrie added the comment: I've continued looking into this. If you have your limits configured higher than default, as I did (and which seems to be working fine): ``` sudo launchctl limit maxfiles 64000 524288 ulimit -Sn 64000 ``` then you'll find that having a soft limit (`NUM_FDS`,

[issue33036] test_selectors.PollSelectorTestCase failing on macOS 10.13.3

2018-03-16 Thread Ned Deily
Ned Deily added the comment: Glad you found the problem - and that it wasn't a Python bug! -- resolution: -> works for me status: open -> closed ___ Python tracker ___ ___

[issue33036] test_selectors.PollSelectorTestCase failing on macOS 10.13.3

2018-03-16 Thread Nathan Henrie
Nathan Henrie added the comment: Update -- I found the following plist at `/Library/LaunchDaemons/limit.maxfiles.plist`: ```xml http://www.apple.com/DTDs/PropertyList-1.0.dtd";> Label limit.maxfiles ProgramArguments launchctl limit maxfiles 64000

[issue33036] test_selectors.PollSelectorTestCase failing on macOS 10.13.3

2018-03-15 Thread Ned Deily
Change by Ned Deily : -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue33036] test_selectors.PollSelectorTestCase failing on macOS 10.13.3

2018-03-15 Thread Nathan Henrie
Nathan Henrie added the comment: Thanks for the response -- I'll keep looking, feel free to close since it's not being reproduced. ``` $ sysctl kern.maxfilesperproc kern.maxfilesperproc: 64000 $ ./python.exe -c 'import resource; print(resource.getrlimit(resource.RLIMIT_NOFILE))' (64000, 524288)

[issue33036] test_selectors.PollSelectorTestCase failing on macOS 10.13.3

2018-03-14 Thread Ned Deily
Ned Deily added the comment: I'm not sure what to suggest other than taking a close look at and instrumenting that part of test_selectors. One thing you could try is seeing what the call to resource.getrlimit(resource.RLIMIT_NOFILE) is returning. You can also look at the values for your sys

[issue33036] test_selectors.PollSelectorTestCase failing on macOS 10.13.3

2018-03-14 Thread Nathan Henrie
Nathan Henrie added the comment: Hmmm, still failing for me. I wonder if it's something specific to my machine. ``` git reset --hard 3.6 && make clean && git pull && ./configure --with-pydebug && make -j && ./python.exe -m unittest -v test.test_selectors.PollSelectorTestCase.test_above_fd_set

[issue33036] test_selectors.PollSelectorTestCase failing on macOS 10.13.3

2018-03-09 Thread Ned Deily
Ned Deily added the comment: Sorry, I am not seeing this failure on 10.13.3 with either current 3.6 head or with v3.6.1. Didn't try anything else. -- nosy: +ned.deily ___ Python tracker

[issue33036] test_selectors.PollSelectorTestCase failing on macOS 10.13.3

2018-03-09 Thread Nathan Henrie
Nathan Henrie added the comment: Traceback: ``` File "cpython/Lib/test/test_selectors.py", line 453, in test_above_fd_setsize self.assertEqual(NUM_FDS // 2, len(s.select())) File "cpython/Lib/selectors.py", line 376, in select fd_event_list = self._poll.poll(timeout) OSError: [Errno

[issue33036] test_selectors.PollSelectorTestCase failing on macOS 10.13.3

2018-03-09 Thread Nathan Henrie
New submission from Nathan Henrie : Failing for me on latest 3.6, 3.6.1, 3.5.5, may be related to https://bugs.python.org/issue32517, presumably a change on macOS KQueue stuff. Can anyone else on macOS 10.13.3 see if they can reproduce? ``` make clean && ./configure --with-pydebug && make -j .