summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelle van der Waa <jvanderwaa@redhat.com>2023-11-03 15:18:09 +0100
committerJelle van der Waa <jvanderwaa@redhat.com>2023-11-03 15:18:09 +0100
commitd3a1d17d59891e1a90c6b39aba89353760bb047d (patch)
tree4bc6787b11bd60341872fb16ca618b1cf4be53fd
parent029651a96dfc8e8e1dc6eca79bd3bf23d3aeb5ce (diff)
linux: prefer is not None over !=
Compare on object identity not equality.
-rwxr-xr-xsrc/linux/integration-test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/integration-test.py b/src/linux/integration-test.py
index ac4d0a6..dc75640 100755
--- a/src/linux/integration-test.py
+++ b/src/linux/integration-test.py
@@ -200,7 +200,7 @@ class Tests(dbusmock.DBusTestCase):
env['SYSTEMD_DEVICE_VERIFY_SYSFS'] = '0'
self.daemon_log = OutputChecker()
- if os.getenv('VALGRIND') != None:
+ if os.getenv('VALGRIND') is not None:
daemon_path = ['valgrind', self.daemon_path, '-v', '-r']
else:
daemon_path = [self.daemon_path, '-v', '-r']