jgehrcke / gipc

gevent-cooperative child processes and inter-process communication
https://gehrcke.de/gipc
MIT License
83 stars 13 forks source link

TestComplexUseCases.test_threadpool_resolver_mp failed on Windows #84

Closed jgehrcke closed 5 years ago

jgehrcke commented 5 years ago
============================= test session starts =============================
platform win32 -- Python 3.4.4, pytest-4.0.2, py-1.7.0, pluggy-0.8.1 -- c:\python34-x64\python.exe

...

================================== FAILURES ===================================
_______________ TestComplexUseCases.test_threadpool_resolver_mp _______________
self = <test_gipc.TestComplexUseCases object at 0x0000000004420E80>
    def test_threadpool_resolver_mp(self):
        h = gevent.get_hub()
        t = h.threadpool
        r = h.resolver
        p = start_process(target=complchild_test_threadpool_resolver_mp)
        p.join(timeout=1)
>       assert p.exitcode == 0
E       assert None == 0
E        +  where None = <_GProcess(_GProcess-29, started)>.exitcode
test\test_gipc.py:1168: AssertionError
---------------------------- Captured stderr call -----------------------------
17:28:37,295.9  [2468 ]start_process# Invoke target `<function complchild_test_threadpool_resolver_mp at 0x00000000043C4598>` in child process.
17:28:38,186.5  [2672 ]_child# _child start. target: `<function complchild_test_threadpool_resolver_mp at 0x0000000004246598>`
------------------------------ Captured log call ------------------------------
gipc.py                    285 DEBUG    Invoke target `<function complchild_test_threadpool_resolver_mp at 0x00000000043C4598>` in child process.
============================== warnings summary ===============================
test/test_gipc.py::TestProcess::test_join_timeout
  c:\python34-x64\lib\site-packages\gevent\timeout.py:217: UserWarning: libuv only supports millisecond timer resolution; all times less will be set to 1 ms
    self.timer = get_hub().loop.timer(seconds or 0.0, ref=ref, priority=priority)
-- Docs: https://docs.pytest.org/en/latest/warnings.html
========= 1 failed, 71 passed, 7 skipped, 1 warnings in 34.05 seconds =========
jgehrcke commented 5 years ago

Added some more leeway in https://github.com/jgehrcke/gipc/pull/83 via https://github.com/jgehrcke/gipc/pull/83/commits/f37b9c44b88ac724b8c57f78ad62dcc6c5c09599.

jgehrcke commented 5 years ago

Improved in master.