]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:tests: Use ‘False’ in boolean expression rather than ‘None’
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 7 Dec 2023 19:34:38 +0000 (08:34 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 21 Dec 2023 20:21:34 +0000 (20:21 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/__init__.py

index 318d195661954ca819bcfa4051fd116bb4e991fc..ccc36e6172c0e4efceefc20fa30e2b414b70b38d 100644 (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):