diff --git a/tests/basic/test_commands.py b/tests/basic/test_commands.py index a46141add..1eb060727 100644 --- a/tests/basic/test_commands.py +++ b/tests/basic/test_commands.py @@ -549,7 +549,7 @@ class TestCommands(TestCase): # Test the cmd_run method with a command that should not raise an error result = commands.cmd_run("exit 1", add_on_nonzero_exit=True) - self.assertTrue("I ran this command" in result) + self.assertIn("I ran this command", result) def test_cmd_add_drop_untracked_files(self): with GitTemporaryDirectory():