1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Refs #36680 -- Fixed admin_scripts tests crash when black is not installed.

Regression in 6436ec3210.
This commit is contained in:
Mariusz Felisiak
2025-10-30 12:38:17 +01:00
committed by GitHub
parent 7fc9db1c6a
commit 3939cd2795

View File

@@ -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
]
)