Use realpath to resolve __file__ when searching for test inside main().
authorZac Medico <zmedico@gentoo.org>
Thu, 6 Aug 2009 05:47:03 +0000 (05:47 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 6 Aug 2009 05:47:03 +0000 (05:47 -0000)
svn path=/main/trunk/; revision=13928

pym/portage/tests/__init__.py

index 7f207a2d0f2d3380482d896b3f8492b9c4cf8614..8676c6ae25253b2cadeeb1602fc578e615b40c93 100644 (file)
@@ -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