Exemple #1
0
def test_calculator_unix(cleanup):
    path = '/tmp/pycapnp-test'
    try:
        os.unlink(path)
    except OSError:
        pass

    address = 'unix:' + path
    test_examples.run_subprocesses(address, 'calculator_server.py',
                                   'calculator_client.py')
Exemple #2
0
def test_calculator_unix(cleanup):
    path = "/tmp/pycapnp-test"
    try:
        os.unlink(path)
    except OSError:
        pass

    address = "unix:" + path
    test_examples.run_subprocesses(address, "calculator_server.py",
                                   "calculator_client.py")
Exemple #3
0
def test_calculator_tcp(cleanup):
    address = 'localhost:36431'
    test_examples.run_subprocesses(address,
                                   'calculator_server.py',
                                   'calculator_client.py',
                                   wildcard_server=True)