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

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

src/b/o/boatshoes-HEAD/tests/test_single_instance.py   boatshoes(Download)
sys.path.append(os.path.join(os.path.split(__file__)[0], '..'))
 
from boatshoes.SingleInstance import SingleInstance, RunningInstanceError
from multiprocessing import Process
 
 
def create_si(name):
    try:
        SingleInstance(name)
    def test_lockfile(self):
        SingleInstance(self.name)
        p = Process(target=create_si, args=(self.name,))
        p.start()
        p.join()