summaryrefslogtreecommitdiffhomepage
path: root/test/unit/check/regex.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/check/regex.py')
-rw-r--r--test/unit/check/regex.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/unit/check/regex.py b/test/unit/check/regex.py
index 734c0150..51cf966b 100644
--- a/test/unit/check/regex.py
+++ b/test/unit/check/regex.py
@@ -1,13 +1,8 @@
import re
-import subprocess
-def check_regex(unitd):
- output = subprocess.check_output(
- [unitd, '--version'], stderr=subprocess.STDOUT
- )
-
- if re.search('--no-regex', output.decode()):
+def check_regex(output_version):
+ if re.search('--no-regex', output_version):
return False
return True