aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_actions.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_actions.py b/tests/test_actions.py
index f6537fa..e6f31e3 100644
--- a/tests/test_actions.py
+++ b/tests/test_actions.py
@@ -71,6 +71,15 @@ class Follow(unittest.TestCase):
actions.follow(lambda: False, keys.append, False)
self.assertEqual(keys, [])
+ def test_no_pidof_reads_as_unlocked(self):
+ import os
+ path = os.environ["PATH"]
+ os.environ["PATH"] = "/nonexistent"
+ try:
+ self.assertFalse(actions._locked())
+ finally:
+ os.environ["PATH"] = path
+
def test_adb_failure_is_ignored(self):
def boom(code):
raise subprocess.CalledProcessError(1, "adb")