From 3436d05a5f5b8c081946b1764d1411aa3bb83806 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 2 Aug 2011 19:25:08 -0400 Subject: Shorten a line --- test/test_summary.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/test_summary.py') 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 -- cgit v1.2.1