Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r13928 - main/trunk/pym/portage/tests
Date: Thu, 06 Aug 2009 05:47:09
Message-Id: E1MYvoe-0006YJ-Um@stork.gentoo.org
1 Author: zmedico
2 Date: 2009-08-06 05:47:03 +0000 (Thu, 06 Aug 2009)
3 New Revision: 13928
4
5 Modified:
6 main/trunk/pym/portage/tests/__init__.py
7 Log:
8 Use realpath to resolve __file__ when searching for test inside main().
9
10
11 Modified: main/trunk/pym/portage/tests/__init__.py
12 ===================================================================
13 --- main/trunk/pym/portage/tests/__init__.py 2009-08-06 05:37:52 UTC (rev 13927)
14 +++ main/trunk/pym/portage/tests/__init__.py 2009-08-06 05:47:03 UTC (rev 13928)
15 @@ -12,7 +12,7 @@
16
17 TEST_FILE = '__test__'
18 suite = unittest.TestSuite()
19 - basedir = os.path.dirname(__file__)
20 + basedir = os.path.dirname(os.path.realpath(__file__))
21 testDirs = []
22
23 # the os.walk help mentions relative paths as being quirky