mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 06:40:04 +01:00
linux: prefer is not None over !=
Compare on object identity not equality.
This commit is contained in:
parent
029651a96d
commit
d3a1d17d59
1 changed files with 1 additions and 1 deletions
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue