aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authornkprasad12 <31296089+nkprasad12@users.noreply.github.com>2022-05-21 12:15:35 -0700
committerGitHub <noreply@github.com>2022-05-21 12:15:35 -0700
commit5a313a3b4e716f073f55e79363e439623c0fb7ff (patch)
tree529ce6a4b02624dd23152800a47874ee22e86ce4 /tests
parent3efdd54e865b837449a7c2c4d8a526be2fa68d60 (diff)
downloadmobly-5a313a3b4e716f073f55e79363e439623c0fb7ff.tar.gz
Fix typo in run_command (#810)
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mobly/utils_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mobly/utils_test.py b/tests/mobly/utils_test.py
index 16204c9..7e95718 100755
--- a/tests/mobly/utils_test.py
+++ b/tests/mobly/utils_test.py
@@ -223,7 +223,7 @@ class UtilsTest(unittest.TestCase):
self.assertEqual(ret, 0)
def test_run_command_with_timeout_expired(self):
- with self.assertRaises(subprocess.TimeoutExpired):
+ with self.assertRaisesRegex(subprocess.TimeoutExpired, 'sleep'):
_ = utils.run_command(self.sleep_cmd(4), timeout=0.01)
@mock.patch('threading.Timer')