diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-01-18 21:01:09 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-01-18 21:01:09 -0500 |
commit | 0618e029df90133aa836847a403f6584eeaf57a4 (patch) | |
tree | 16a5b9c9a5a75a6fd687508206ef851da204bb0c /tests/test_process.py | |
parent | 39ff8faf93287a78b105bfb0322f10227af60dae (diff) | |
download | python-coveragepy-git-0618e029df90133aa836847a403f6584eeaf57a4.tar.gz |
Make some test setup more uniform
Diffstat (limited to 'tests/test_process.py')
-rw-r--r-- | tests/test_process.py | 7 |
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()) |