summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2022-03-22 18:27:15 +0000
committerDaniel P. Berrangé <berrange@redhat.com>2022-04-21 15:00:29 +0000
commit60044515a256c36afad0fc5efcb7ea946eb93783 (patch)
tree345f3e5a8b84612450eff55ee6d12d460706e9cf
parent6feb31a7a10267e14183495915b191ecdf4ea3e8 (diff)
downloadlibvirt-python-60044515a256c36afad0fc5efcb7ea946eb93783.tar.gz
setup: switch to running API coverage test using pytestv8.3.0
The API coverage test is no longer a special case. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
-rwxr-xr-xsetup.py2
-rw-r--r--tests/test_api_coverage.py (renamed from sanitytest.py)3
2 files changed, 0 insertions, 5 deletions
diff --git a/setup.py b/setup.py
index a6a53bb..d4b218d 100755
--- a/setup.py
+++ b/setup.py
@@ -309,8 +309,6 @@ class my_test(Command):
else:
os.environ["PYTHONPATH"] = self.build_platlib
- if "LIBVIRT_API_COVERAGE" in os.environ:
- self.spawn([sys.executable, "sanitytest.py"])
pytest = self.find_pytest_path()
subprocess.check_call([pytest])
diff --git a/sanitytest.py b/tests/test_api_coverage.py
index 8f02cdf..c922df2 100644
--- a/sanitytest.py
+++ b/tests/test_api_coverage.py
@@ -430,6 +430,3 @@ class LibvirtAPICoverage(unittest.TestCase):
usedfunctions = validate_c_to_python_api_mappings(finalklassmap, gotfunctions)
validate_python_to_c_api_mappings(gotfunctions, usedfunctions)
validate_c_api_bindings_present(finalklassmap)
-
-test = LibvirtAPICoverage()
-test.test_libvirt_api()