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:
parent
93379df977
commit
3b15035453
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user