summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-08-14 08:05:57 -0400
committerNed Batchelder <ned@nedbatchelder.com>2018-08-14 08:05:57 -0400
commitf087c213dbe2ffb1b4a0661c9d25e67915987a99 (patch)
tree0762e95ce98cf3b1c036cd71932e54cd293f5a99 /tests
parent0341a891a22f29466fd525bc5aa010c5d85bed52 (diff)
downloadpython-coveragepy-git-f087c213dbe2ffb1b4a0661c9d25e67915987a99.tar.gz
Remove an unused debugging thing
Diffstat (limited to 'tests')
-rw-r--r--tests/coveragetest.py7
-rw-r--r--tests/test_farm.py5
2 files changed, 0 insertions, 12 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py
index 94f50852..9814d648 100644
--- a/tests/coveragetest.py
+++ b/tests/coveragetest.py
@@ -24,7 +24,6 @@ from coverage import env
from coverage.backunittest import TestCase, unittest
from coverage.backward import StringIO, import_local_file, string_class, shlex_quote
from coverage.cmdline import CoverageScript
-from coverage.debug import _TEST_NAME_FILE
from coverage.misc import StopEverything
from tests.helpers import run_command, SuperModuleCleaner
@@ -91,12 +90,6 @@ class CoverageTest(
self.last_command_output = None
self.last_module_name = None
- if _TEST_NAME_FILE: # pragma: debugging
- with open(_TEST_NAME_FILE, "w") as f:
- f.write("%s_%s" % (
- self.__class__.__name__, self._testMethodName,
- ))
-
def clean_local_file_imports(self):
"""Clean up the results of calls to `import_local_file`.
diff --git a/tests/test_farm.py b/tests/test_farm.py
index 942bdd5c..54eeb499 100644
--- a/tests/test_farm.py
+++ b/tests/test_farm.py
@@ -20,7 +20,6 @@ from tests.backtest import execfile # pylint: disable=redefined-builtin
from coverage import env
from coverage.backunittest import unittest
-from coverage.debug import _TEST_NAME_FILE
# Look for files that become tests.
@@ -105,10 +104,6 @@ class FarmTestCase(ModuleAwareMixin, SysPathAwareMixin, unittest.TestCase):
def __call__(self): # pylint: disable=arguments-differ
"""Execute the test from the runpy file."""
- if _TEST_NAME_FILE: # pragma: debugging
- with open(_TEST_NAME_FILE, "w") as f:
- f.write(self.description.replace("/", "_"))
-
# Prepare a dictionary of globals for the run.py files to use.
fns = """
copy run clean skip