mirror of
https://github.com/django/django.git
synced 2025-12-23 09:19:27 +00:00
[6.0.x] Refs #36680 -- Fixed admin_scripts tests crash when black is not installed.
Regression in6436ec3210. Backport of3939cd2795from main.
This commit is contained in:
parent
e217139f53
commit
11cfb573d2
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
]
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue