make test more tolerant
This commit is contained in:
parent
7cf1c494b4
commit
1839d385ca
|
|
@ -40,7 +40,7 @@ def pip_command(*args) -> str:
|
|||
ret = subprocess.check_output(
|
||||
command, cwd=settings.BASE_DIR.parent, stderr=subprocess.STDOUT
|
||||
).decode('utf-8')
|
||||
if ret.startswith('No module named pip'):
|
||||
if 'No module named pip' in ret:
|
||||
raise ValidationError(_('Pip is not installed in the current environment'))
|
||||
return ret
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue