Commit Graph

4 Commits

Author SHA1 Message Date
Christoph Reiter
e73064270e python3: add a ctypes import to the tests
the last build is missing ctypes, this makes it easier to detect it early next time
2018-10-21 19:54:42 +02:00
Christoph Reiter
c054d829f0 python3: undef _POSIX_THREADS in one more place; switch back to nt-threads
python uses _POSIX_THREADS to decide if it uses posix or nt threads,
but _POSIX_THREADS get included all the time by header includes
(pthread, unistd) in mingw. This was already patched but py3.7 added a new
header with a similar check which was missing.

This resulted in a mix of ntthread/posix api usage an crashes.
2018-07-07 09:32:43 +02:00
Christoph Reiter
fbca0b8b73 python3: Fix _PyIsSelectable_fd(). See #4048
It should always return true under Windows but used _MSC_VER to check for that.
This fixes nonblocking sockets (or when used with a timeout).
2018-07-06 17:33:23 +02:00
Christoph Reiter
3f6c286d6a python3: Make multiprocessing.Queue work; Add some tests. Fixes #837 (#2619)
With non-mingw builds POSIX_SEMAPHORES_NOT_ENABLED is not enabled and
sem_unlink is a no-op. Change it to always be provided on Windows instead.

This adds a minimal test suite which makes it easier to catch regressions
in the future for common MSYS2 related bugs.
2017-06-26 07:02:42 +03:00