diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-08-23 07:08:21 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-08-24 06:54:17 -0400 |
commit | 9f502b230c8c4b48334c0846cc9c50f9783c1a06 (patch) | |
tree | 43bb4da90f3ffef4195b11b1a9cf3c5a906c5707 /tests | |
parent | b701a0c3088f917e3fc5feb081a5b5166126d4f1 (diff) | |
download | python-coveragepy-git-9f502b230c8c4b48334c0846cc9c50f9783c1a06.tar.gz |
Remove now-unused CoverageGoldTest class
Diffstat (limited to 'tests')
-rw-r--r-- | tests/goldtest.py | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/tests/goldtest.py b/tests/goldtest.py index af471a14..48842f0c 100644 --- a/tests/goldtest.py +++ b/tests/goldtest.py @@ -4,12 +4,10 @@ """A test base class for tests based on gold file comparison.""" import os -import sys from unittest_mixins import change_dir # pylint: disable=unused-import -from tests.coveragetest import CoverageTest, TESTS_DIR -from tests.test_farm import clean +from tests.coveragetest import TESTS_DIR # Import helpers, eventually test_farm.py will go away. from tests.test_farm import ( # pylint: disable=unused-import compare, contains, doesnt_contain, contains_any, @@ -18,29 +16,3 @@ from tests.test_farm import ( # pylint: disable=unused-import def gold_path(path): """Get a path to a gold file for comparison.""" return os.path.join(TESTS_DIR, "farm", path) - - -class CoverageGoldTest(CoverageTest): - """A test based on gold files.""" - - run_in_temp_dir = False - - def setUp(self): - super(CoverageGoldTest, self).setUp() - self.chdir(self.root_dir) - # Modules should be importable from the current directory. - sys.path.insert(0, '') - - def output_dir(self, the_dir): - """Declare where the output directory is. - - The output directory is deleted at the end of the test, unless the - COVERAGE_KEEP_OUTPUT environment variable is set. - - """ - # To make sure tests are isolated, we always clean the directory at the - # beginning of the test. - clean(the_dir) - - if not os.environ.get("COVERAGE_KEEP_OUTPUT"): # pragma: part covered - self.addCleanup(clean, the_dir) |