make test more tolerant

This commit is contained in:
Matthias Mair 2026-06-22 22:54:31 +02:00
parent 7cf1c494b4
commit 1839d385ca
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A
1 changed files with 1 additions and 1 deletions

View File

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