From c44e7110285dc8c3c94aa9488432b3b12349aaec Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Sat, 13 Feb 2021 20:27:28 -0500 Subject: [PATCH] fix version constraint for Popen --- tests/test_audit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_audit.py b/tests/test_audit.py index 641b4ad..93c47e0 100644 --- a/tests/test_audit.py +++ b/tests/test_audit.py @@ -24,7 +24,7 @@ class AuditTest(unittest.TestCase): stdout=subprocess.PIPE, stderr=subprocess.PIPE, ) - if sys.version_info > (3, 5): + if sys.version_info >= (3, 6): popen_kwargs["encoding"] = "utf-8" p = subprocess.Popen( @@ -43,7 +43,7 @@ class AuditTest(unittest.TestCase): stdout=subprocess.PIPE, stderr=subprocess.PIPE, ) - if sys.version_info > (3, 5): + if sys.version_info >= (3, 6): popen_kwargs["encoding"] = "utf-8" p = subprocess.Popen(