From 88f5659958c9b47ad0259bd8cc695cd37d10a089 Mon Sep 17 00:00:00 2001 From: Stefan Verhoeven Date: Wed, 28 Apr 2021 09:43:46 +0200 Subject: [PATCH 1/2] Use encoding instead of text Dont use text argument as was introduced in Python 3.7 while template is for 3.6 Fixes #188 --- tests/test_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_project.py b/tests/test_project.py index e1eca14e..1441048c 100644 --- a/tests/test_project.py +++ b/tests/test_project.py @@ -17,7 +17,7 @@ def run(command: str, dirpath: os.PathLike) -> subprocess.CompletedProcess: stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=dirpath, - text=True) + encoding='utf-8') def test_pytest(cookies): From 43068467cee50e362850e763383ce83ac41ff633 Mon Sep 17 00:00:00 2001 From: Stefan Verhoeven Date: Wed, 28 Apr 2021 15:07:34 +0200 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Jurriaan H. Spaaks --- tests/test_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_project.py b/tests/test_project.py index 1441048c..b948a256 100644 --- a/tests/test_project.py +++ b/tests/test_project.py @@ -17,7 +17,7 @@ def run(command: str, dirpath: os.PathLike) -> subprocess.CompletedProcess: stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=dirpath, - encoding='utf-8') + encoding="utf-8") def test_pytest(cookies):