New submission from Martin v. Löwis <mar...@v.loewis.de>: This is similar to #10348, but has a different scope; the attached patch disables the ProcessPoolExecutor if the system has too few POSIX semaphores.
To keep support for the ThreadPoolExecutor, I had the test cases stop using multiprocessing.Event in the threaded test cases. Unfortunately, this had two side effect that I think indicate a bug elsewhere: 1. ThreadPoolWaitTests.test_all_completed_some_already_completed hangs 2. (sometimes) ThreadPoolWaitTests.test_first_exception fails: self.assertEqual(set([future1, future2]), finished) AssertionError: Items in the first set but not the second: <Future at 0x1851ad0 state=running> I haven't been able to determine yet why it hangs. If the hanging test is disabled, the tests pass on both Linux and FreeBSD 7.3. ---------- files: fbsd.diff keywords: patch messages: 124933 nosy: bquinlan, loewis priority: normal severity: normal status: open title: test_concurrent_futures fails on FreeBSD Added file: http://bugs.python.org/file20198/fbsd.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10798> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com