summaryrefslogtreecommitdiff
path: root/test/test_summary.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-08-02 19:25:08 -0400
committerNed Batchelder <ned@nedbatchelder.com>2011-08-02 19:25:08 -0400
commitaa2aa4de7bffb6453b736e9a1f6177ac8eac68b8 (patch)
tree94e29620943b575f76de06c100a7fe23d0bac551 /test/test_summary.py
parent0b05ae076815f9239019e04778d4d481c8ae1ac3 (diff)
downloadpython-coveragepy-aa2aa4de7bffb6453b736e9a1f6177ac8eac68b8.tar.gz
Shorten a line
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