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

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)
sleep(seconds)

Delay execution for a given number of seconds.  The argument may be
a floating point number for subsecond precision.

src/n/u/nupic-linux64-HEAD/lib/python2.6/site-packages/xdist/looponfail.py   nupic-linux64(Download)
            if changed:
                return
            py.std.time.sleep(checkinterval)
 
    def check(self, removepycfiles=True):

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/misc/testing/test_cache.py   plexnet(Download)
            if self.cache.getentry(17) is None: 
                break 
            py.std.time.sleep(self.maxsecs*0.3) 
        else: 
            py.test.fail("waiting for cache eviction failed") 
    for x in range(cache.maxentries): 
        cache.getorbuild(x, lambda: x) 
    py.std.time.sleep(maxsecs*1.1) 
    cache.getorbuild(cache.maxentries+1, lambda: 42) 
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/thread/testing/test_pool.py   plexnet(Download)
    def f(i): 
        q.put(i) 
        while q.qsize(): 
            py.std.time.sleep(0.01) 
    for i in range(num):
    # remove this comment...
    # pool.join(timeout=1.0)
    py.std.time.sleep(1)
    assert len(pool._alive) == 0
    assert len(pool._ready) == 0
    def f(): 
        py.std.time.sleep(0.2) 
        return 42
    reply = pool.dispatch(f) 
    py.test.raises(IOError, "reply.get(timeout=0.01)") 
    def f():
        py.std.time.sleep(0.5)
    try:
        pool.dispatch(f)
        py.test.raises(IOError, pool.dispatch, f)

src/p/y/py-1.4.20/testing/path/test_cacheutil.py   py(Download)
            except KeyError:
                break
            py.std.time.sleep(self.maxsecs*0.3)
        else:
            py.test.fail("waiting for cache eviction failed")
    for x in range(cache.maxentries):
        cache.getorbuild(x, lambda: x)
    py.std.time.sleep(maxsecs*1.1)
    cache.getorbuild(cache.maxentries+1, lambda: 42)
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/test/looponfail/util.py   plexnet(Download)
            if changed:
                return
            py.std.time.sleep(checkinterval)
 
    def check(self, removepycfiles=True):

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/test/looponfail/testing/test_util.py   plexnet(Download)
    wp = py._thread.WorkerPool(1)
    reply = wp.dispatch(sd.waitonchange, checkinterval=0.2)
    py.std.time.sleep(0.05)
    tmp.ensure("newfile.py")
    reply.get(timeout=0.5)

src/p/y/pytest-xdist-1.10/xdist/looponfail.py   pytest-xdist(Download)
            if changed:
                return
            py.std.time.sleep(checkinterval)
 
    def check(self, removepycfiles=True):

src/p/y/pytest-xdist-1.10/testing/acceptance_test.py   pytest-xdist(Download)
        """)
        child = testdir.spawn_pytest("-n1")
        py.std.time.sleep(0.1)
        child.expect(".*test session starts.*")
        child.kill(2) # keyboard interrupt

src/e/x/execnet-1.2.0/testing/test_multi.py   execnet(Download)
    def term():
        py.std.time.sleep(3)
    def kill():
        l.append(1)
    safe_terminate(execmodel, 1, [(term, kill)] * 10)