From 74fda6932c9ca28a7821cad7debdcbacd7d9f343 Mon Sep 17 00:00:00 2001 From: Taras Date: Sat, 9 Mar 2019 13:00:30 +0200 Subject: [PATCH] Fix subprocess for ktutil on linux. Temporary limit test runner to debug sasl tests --- Makefile | 2 +- tests/_testutil.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ea338859..61e936d8 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ ci-test-unit: py.test -s --cov aiokafka --cov-report html $(FLAGS) tests ci-test-all: - py.test -s --cov aiokafka --cov-report html --docker-image $(DOCKER_IMAGE) $(FLAGS) tests + py.test -s --cov aiokafka --cov-report html --docker-image $(DOCKER_IMAGE) $(FLAGS) -k sasl tests coverage.xml: .coverage coverage xml diff --git a/tests/_testutil.py b/tests/_testutil.py index 980d64d1..3f15357b 100644 --- a/tests/_testutil.py +++ b/tests/_testutil.py @@ -236,7 +236,7 @@ def create_keytab( subprocess.run( ['ktutil'], cwd=str(keytab_dir.absolute()), - input=input_data, check=True) + input=input_data.encode(), check=True) else: raise NotImplementedError