summaryrefslogtreecommitdiff
path: root/test/test_summary.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-08-02 22:37:21 -0400
committerNed Batchelder <ned@nedbatchelder.com>2011-08-02 22:37:21 -0400
commitf00f1fe9ce97215b83c4bf4b93f4549e662c609f (patch)
treea9626403ea5c5e8c56d8da6b9b4723b2472d1c8b /test/test_summary.py
parent91692c31f757fe78e9a7376033f66772fc97f36b (diff)
parent3447a59bd5570dde4e1ae355aca06a4b9bf4413b (diff)
downloadpython-coveragepy-git-f00f1fe9ce97215b83c4bf4b93f4549e662c609f.tar.gz
Automated merge with ssh://bitbucket.org/ned/coveragepy
Diffstat (limited to 'test/test_summary.py')
-rw-r--r--test/test_summary.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_summary.py b/test/test_summary.py
index 306ce883..499a7159 100644
--- a/test/test_summary.py
+++ b/test/test_summary.py
@@ -138,8 +138,9 @@ class SummaryTest2(CoverageTest):
def setUp(self):
super(SummaryTest2, self).setUp()
# Parent class saves and restores sys.path, we can just modify it.
- sys.path.append(self.nice_file(os.path.dirname(__file__), 'modules'))
- sys.path.append(self.nice_file(os.path.dirname(__file__), 'moremodules'))
+ this_dir = os.path.dirname(__file__)
+ sys.path.append(self.nice_file(this_dir, 'modules'))
+ sys.path.append(self.nice_file(this_dir, 'moremodules'))
def test_empty_files(self):
# Shows that empty files like __init__.py are listed as having zero