From cf363f563298bafa4dec2ff84a8fe867a8ed0ee7 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Mon, 17 Feb 2020 12:44:13 +0000 Subject: [tests] look for 'true' in test_exe_file() instead of py script Use the executable 'true' when testing is_executable() on a non-absolute path. Related: #1949 Signed-off-by: Bryn M. Reeves Signed-off-by: Jake Hunsaker --- tests/utilities_tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/utilities_tests.py b/tests/utilities_tests.py index f1b60e2b..8e1514b0 100644 --- a/tests/utilities_tests.py +++ b/tests/utilities_tests.py @@ -50,8 +50,7 @@ class ExecutableTest(unittest.TestCase): self.assertFalse(is_executable(path)) def test_exe_file(self): - path = os.path.join(TEST_DIR, 'test_exe.py') - self.assertTrue(is_executable(path)) + self.assertTrue(is_executable('true')) def test_exe_file_abs_path(self): self.assertTrue(is_executable("/usr/bin/timeout")) -- cgit