1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

python:tests: Use ‘False’ in boolean expression rather than ‘None’

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-12-08 08:34:38 +13:00 committed by Andrew Bartlett
parent 93379df977
commit 3b15035453

View File

@ -506,7 +506,7 @@ class BlackboxTestCase(TestCaseInTempDir):
if os.path.exists(exe):
parts[0] = exe
if cmd in python_cmds and os.getenv("PYTHON", None):
if cmd in python_cmds and os.getenv("PYTHON", False):
parts.insert(0, os.environ["PYTHON"])
if not isinstance(line, list):