Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/io/testing/test_fdcapture.py   plexnet(Download)
    def test_basic(self): 
        tmpfile = py.std.os.tmpfile() 
        fd = tmpfile.fileno()
        cap = py.io.FDCapture(fd)
        os.write(fd, "hello")

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/io/testing/test_dupfile.py   plexnet(Download)
def test_dupfile(): 
    somefile = py.std.os.tmpfile() 
    flist = []
    for i in range(5): 
        nf = py.io.dupfile(somefile)