commit: d002db2a14578b8fd3848968db4fd0224793622d
Author: Brian Harring <ferringb <AT> gmail <DOT> com>
AuthorDate: Sat Nov 29 18:57:48 2025 +0000
Commit: Brian Harring <ferringb <AT> gmail <DOT> com>
CommitDate: Sat Nov 29 22:40:39 2025 +0000
URL:
https://gitweb.gentoo.org/proj/pkgcore/snakeoil.git/commit/?id=d002db2a
also actually delete the damn demandload tests
Signed-off-by: Brian Harring <ferringb <AT> gmail.com>
tests/test_demandload_usage.py | 31 -------------------------------
1 file changed, 31 deletions(-)
diff --git a/tests/test_demandload_usage.py b/tests/test_demandload_usage.py
deleted file mode 100644
index 1c4b25d..0000000
--- a/tests/test_demandload_usage.py
+++ /dev/null
@@ -1,31 +0,0 @@
-import pytest
-
-from snakeoil.test.mixins import PythonNamespaceWalker
-
-
-class TestDemandLoadTargets(PythonNamespaceWalker):
- target_namespace = "snakeoil"
- ignore_all_import_failures = False
-
- @pytest.fixture(autouse=True)
- def _setup(self):
- self._failures = []
- yield
- msg = "\n".join(sorted(f"{target}: error {e}" for target, e in
self._failures))
- assert not self._failures, "bad demandload targets:\n" + msg
-
- def test_demandload_targets(self):
- for x in self.walk_namespace(
- self.target_namespace,
ignore_failed_imports=self.ignore_all_import_failures
- ):
- self.check_space(x)
-
- def check_space(self, mod):
- for attr in dir(mod):
- try:
- obj = getattr(mod, attr)
- # force __getattribute__ to fire
- getattr(obj, "__class__", None)
- except ImportError as ie:
- # hit one.
- self._failures.append((f"{mod.__name__}: target {attr}", ie))