mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-05 18:08:02 +02:00
linux: Fix exception check when on test daemon shutdown
subprocess.Popen.wait throws subprocess.TimeoutExpired not TimeoutError. Related: #188
This commit is contained in:
parent
aa646fa0ca
commit
267f5ea8d3
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ class Tests(dbusmock.DBusTestCase):
|
|||
pass
|
||||
try:
|
||||
self.assertEqual(self.daemon.wait(timeout=2.0), 0)
|
||||
except TimeoutError:
|
||||
except subprocess.TimeoutExpired:
|
||||
try:
|
||||
self.daemon.kill()
|
||||
except OSError:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue