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:
@@ -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
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user