Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy/module/select/test/test_epoll.py::AppTestEpoll::()::test_control_and_wait

self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0xf4f1904c>

    def test_control_and_wait(self):
            import select
            import time
    
            client, server = self.socket_pair()
    
            ep = select.epoll(16)
            ep.register(server.fileno(),
                select.EPOLLIN | select.EPOLLOUT | select.EPOLLET
            )
            ep.register(client.fileno(),
                select.EPOLLIN | select.EPOLLOUT | select.EPOLLET
            )
    
            now = time.time()
            events = ep.poll(1, 4)
            then = time.time()
            assert then - now < 0.1
    
            events.sort()
            expected = [
                (client.fileno(), select.EPOLLOUT),
                (server.fileno(), select.EPOLLOUT)
            ]
            expected.sort()
    
            assert events == expected
>           assert then - now < self.timeout
E           (application-level) AssertionError: assert (1779951318.197935 - 1779951318.176742) < 0.02
E            +  where 0.02 = 0.02
E            +    where 0.02 = <AppTestEpoll object at 0xf4f1904c>.timeout

[/build_dir/own-linux-x86-32/build/pypy/module/select/test/test_epoll.py:120]:28: AssertionError
builder: own-linux-x86-32 build #9378+
test: pypy/module/select/test/test_epoll.py::AppTestEpoll::()::test_control_and_wait