summaryrefslogtreecommitdiff
path: root/test/test_summary.py
diff options
context:
space:
mode:
authorNed Batchelder <nedbat@gmail.com>2011-08-03 17:32:15 -0400
committerNed Batchelder <nedbat@gmail.com>2011-08-03 17:32:15 -0400
commit5cf19e6f1afed26790065fd815784b2f1abf90ca (patch)
tree85d04dcaf651b30050322d26d59dd2eb3a7a13e9 /test/test_summary.py
parentd9318b840bec37c116d5ef95ac1a618149f625da (diff)
parentb0631ade5791ebb3a0a0c80a710d1719b944d06d (diff)
downloadpython-coveragepy-5cf19e6f1afed26790065fd815784b2f1abf90ca.tar.gz
Merged in bignose/coveragepy-debian (pull request #2)
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 306ce88..499a715 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