summaryrefslogtreecommitdiff
path: root/tests/test_process.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_process.py')
-rw-r--r--tests/test_process.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_process.py b/tests/test_process.py
index aa179c68..a1c853d1 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -2,6 +2,7 @@
import glob
import os
+import os.path
import sys
import textwrap
@@ -12,7 +13,7 @@ from coverage import env
from tests.coveragetest import CoverageTest
-here = os.path.dirname(__file__)
+HERE = os.path.dirname(__file__)
class ProcessTest(CoverageTest):
@@ -325,7 +326,7 @@ class ProcessTest(CoverageTest):
self.assertEqual(status, 0)
def test_coverage_run_is_like_python(self):
- tryfile = os.path.join(here, "try_execfile.py")
+ tryfile = os.path.join(HERE, "try_execfile.py")
with open(tryfile) as f:
self.make_file("run_me.py", f.read())
out_cov = self.run_command("coverage run run_me.py")
@@ -388,7 +389,7 @@ class ProcessTest(CoverageTest):
def test_coverage_run_dashm_is_like_python_dashm_off_path(self):
# https://bitbucket.org/ned/coveragepy/issue/242
- tryfile = os.path.join(here, "try_execfile.py")
+ tryfile = os.path.join(HERE, "try_execfile.py")
self.make_file("sub/__init__.py", "")
with open(tryfile) as f:
self.make_file("sub/run_me.py", f.read())