Did I find the right examples for you? yes no

All Samples(41)  |  Call(41)  |  Derive(0)  |  Import(0)

src/i/r/ironpython3-HEAD/Src/StdLib/Lib/test/test_selectors.py   ironpython3(Download)
    def test_register(self):
        s = self.SELECTOR()
        self.addCleanup(s.close)
 
        rd, wr = self.make_socketpair()
    def test_unregister(self):
        s = self.SELECTOR()
        self.addCleanup(s.close)
 
        rd, wr = self.make_socketpair()
    def test_unregister_after_fd_close(self):
        s = self.SELECTOR()
        self.addCleanup(s.close)
        rd, wr = self.make_socketpair()
        r, w = rd.fileno(), wr.fileno()
    def test_unregister_after_fd_close_and_reuse(self):
        s = self.SELECTOR()
        self.addCleanup(s.close)
        rd, wr = self.make_socketpair()
        r, w = rd.fileno(), wr.fileno()
    def test_unregister_after_socket_close(self):
        s = self.SELECTOR()
        self.addCleanup(s.close)
        rd, wr = self.make_socketpair()
        s.register(rd, selectors.EVENT_READ)

src/c/p/cpython-HEAD/Lib/test/test_selectors.py   cpython(Download)
    def test_register(self):
        s = self.SELECTOR()
        self.addCleanup(s.close)
 
        rd, wr = self.make_socketpair()
    def test_unregister(self):
        s = self.SELECTOR()
        self.addCleanup(s.close)
 
        rd, wr = self.make_socketpair()
    def test_unregister_after_fd_close(self):
        s = self.SELECTOR()
        self.addCleanup(s.close)
        rd, wr = self.make_socketpair()
        r, w = rd.fileno(), wr.fileno()
    def test_unregister_after_fd_close_and_reuse(self):
        s = self.SELECTOR()
        self.addCleanup(s.close)
        rd, wr = self.make_socketpair()
        r, w = rd.fileno(), wr.fileno()
    def test_unregister_after_socket_close(self):
        s = self.SELECTOR()
        self.addCleanup(s.close)
        rd, wr = self.make_socketpair()
        s.register(rd, selectors.EVENT_READ)

src/s/t/static-python-HEAD/Lib/test/test_selectors.py   static-python(Download)
    def test_register(self):
        s = self.SELECTOR()
        self.addCleanup(s.close)
 
        rd, wr = socketpair()
    def test_unregister(self):
        s = self.SELECTOR()
        self.addCleanup(s.close)
 
        rd, wr = socketpair()
    def test_modify(self):
        s = self.SELECTOR()
        self.addCleanup(s.close)
 
        rd, wr = socketpair()
    def test_close(self):
        s = self.SELECTOR()
        self.addCleanup(s.close)
 
        rd, wr = socketpair()
    def test_get_key(self):
        s = self.SELECTOR()
        self.addCleanup(s.close)
 
        rd, wr = socketpair()