summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/admin_scripts/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py
index 9442822bd6..c01a5571dc 100644
--- a/tests/admin_scripts/tests.py
+++ b/tests/admin_scripts/tests.py
@@ -119,7 +119,8 @@ class AdminScriptTestCase(SimpleTestCase):
path_component
for path_component in os.environ.get("PATH", "").split(os.pathsep)
for formatter_path in find_formatters().values()
- if os.path.commonpath([path_component, formatter_path]) == os.sep
+ if formatter_path
+ and os.path.commonpath([path_component, formatter_path]) == os.sep
]
)