summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-08-06 05:47:03 +0000
committerZac Medico <zmedico@gentoo.org>2009-08-06 05:47:03 +0000
commite3c287875ccd85022d480cd8168ce48370897824 (patch)
treebc6d521c65f1c32c26ee99269296b66db35d1cef
parentdf11a6ad5ca569174d6716e08e755bbb10e5ce5f (diff)
downloadportage-e3c287875ccd85022d480cd8168ce48370897824.tar.gz
portage-e3c287875ccd85022d480cd8168ce48370897824.tar.bz2
portage-e3c287875ccd85022d480cd8168ce48370897824.zip
Use realpath to resolve __file__ when searching for test inside main().
svn path=/main/trunk/; revision=13928
-rw-r--r--pym/portage/tests/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/tests/__init__.py b/pym/portage/tests/__init__.py
index 7f207a2d0..8676c6ae2 100644
--- a/pym/portage/tests/__init__.py
+++ b/pym/portage/tests/__init__.py
@@ -12,7 +12,7 @@ def main():
TEST_FILE = '__test__'
suite = unittest.TestSuite()
- basedir = os.path.dirname(__file__)
+ basedir = os.path.dirname(os.path.realpath(__file__))
testDirs = []
# the os.walk help mentions relative paths as being quirky