summaryrefslogtreecommitdiff
path: root/test/TEX/variant_dir_newglossary.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/TEX/variant_dir_newglossary.py')
-rw-r--r--test/TEX/variant_dir_newglossary.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/TEX/variant_dir_newglossary.py b/test/TEX/variant_dir_newglossary.py
index 5e4d10d38..ae865aae4 100644
--- a/test/TEX/variant_dir_newglossary.py
+++ b/test/TEX/variant_dir_newglossary.py
@@ -31,7 +31,8 @@ with variant_dir.
Test configuration contributed by Kendrick Boyd.
"""
-import os
+import subprocess
+
import TestSCons
test = TestSCons.TestSCons()
@@ -41,8 +42,8 @@ latex = test.where_is('latex')
if not latex:
test.skip_test("Could not find 'latex'; skipping test(s).\n")
-gloss = os.system('kpsewhich glossaries.sty')
-if gloss!=0:
+cp = subprocess.run('kpsewhich glossaries.sty', shell=True)
+if cp.returncode:
test.skip_test("glossaries.sty not installed; skipping test(s).\n")