From 652d02eaa54d57373ced4be939603fb99feef8fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 14 Dec 2018 17:13:21 +0100 Subject: [PATCH] Make tests.py create pipes in project root --- tests.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests.py b/tests.py index 73398b9..f3ac3da 100644 --- a/tests.py +++ b/tests.py @@ -1,5 +1,6 @@ +# pylint: disable=redefined-outer-name from os import stat -from os.path import exists +from os.path import exists, dirname, realpath, join from stat import S_ISFIFO import pytest @@ -9,7 +10,11 @@ from echo_server import EchoPipeIOServer @pytest.fixture def pipe_io(): - pipe_server = EchoPipeIOServer() + here = dirname(realpath(__file__)) + pipe_server = EchoPipeIOServer( + join(here, 'in_pipe_tests'), + join(here, 'out_pipe_tests') + ) pipe_server.run() yield pipe_server pipe_server.stop()