From 101ee4881317ddb3709b481e45d27b1dcdb43b94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Fri, 1 Oct 2010 08:38:28 +0000 Subject: [PATCH] tests: Replace the path with __file__ in testCanAccessFile Otherwise, the result of the test is dependent on the installed packages. --- tests/shelltest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shelltest.py b/tests/shelltest.py index aae2a520..225304bc 100644 --- a/tests/shelltest.py +++ b/tests/shelltest.py @@ -13,7 +13,7 @@ class ShellTestCase(unittest.TestCase): def testCanAccessFile(self): from pisi.actionsapi.shelltools import can_access_file - assert can_access_file('/usr/lib/engines/libaep.so') + assert can_access_file(__file__) assert not can_access_file('actionsapi/set.py') def testCanAccessDirectory(self):