[issue18963] test_selectors test_above_fd_setsize cases fail on OS X due to infinite hard limit

Charles-François Natali report at bugs.python.org
Sun Sep 8 12:21:36 CEST 2013


Charles-François Natali added the comment:

I knew this wouldn't be so easy with OS X...

http://buildbot.python.org/all/builders/x86%20Tiger%203.x/builds/6916/steps/test/logs/stdio

======================================================================
ERROR: test_above_fd_setsize (test.test_selectors.PollSelectorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/db3l/buildarea/3.x.bolen-tiger/build/Lib/unittest/case.py",
line 56, in testPartExecutor
    yield
  File "/Users/db3l/buildarea/3.x.bolen-tiger/build/Lib/unittest/case.py",
line 528, in doCleanups
    function(*args, **kwargs)
ValueError: not allowed to raise maximum limit

----------------------------------------------------------------------

Basically, we can't restore RLIMIT_NOFILE to its original value (from
the cleanup callback): since this works on Ned's machine, I assume
this has been fixed in recent OS X versions.
So I'll restore the requires_mac_vers() decorator.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18963>
_______________________________________


More information about the Python-bugs-list mailing list