summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2021-08-26 11:46:07 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2021-08-26 11:59:03 -0700
commit8271a5e288b80c86e138e4600bf847b589d6e0f1 (patch)
tree3e52b0fd38e5918a36ae2ac3c32a62315a46f06a
parent135faabfd62f8c3566fd4f99a5688316302cf1c8 (diff)
downloadpip-8271a5e288b80c86e138e4600bf847b589d6e0f1.tar.gz
Remove unused ConfigurationMixin._files_to_clear
The list is always empty. Removing the unused attributes simplifies the mixin and avoids the need to add a type annotation for it. Unused since its introduction in bd850c079851d5458e4af82921739666545b6170.
-rw-r--r--news/06aa831e-3893-4502-b438-ef3c94e8227a.trivial.rst0
-rw-r--r--tests/lib/configuration_helpers.py5
2 files changed, 0 insertions, 5 deletions
diff --git a/news/06aa831e-3893-4502-b438-ef3c94e8227a.trivial.rst b/news/06aa831e-3893-4502-b438-ef3c94e8227a.trivial.rst
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/news/06aa831e-3893-4502-b438-ef3c94e8227a.trivial.rst
diff --git a/tests/lib/configuration_helpers.py b/tests/lib/configuration_helpers.py
index 5b20aafa1..c54265100 100644
--- a/tests/lib/configuration_helpers.py
+++ b/tests/lib/configuration_helpers.py
@@ -19,11 +19,6 @@ class ConfigurationMixin:
self.configuration = pip._internal.configuration.Configuration(
isolated=False,
)
- self._files_to_clear = []
-
- def teardown(self):
- for fname in self._files_to_clear:
- fname.stop()
def patch_configuration(self, variant, di):
old = self.configuration._load_config_files