Description: Call unittest explicitly
 setuptools no longer support calling a test suite.
Author: Thibaut Paumard <thibaut@debian.org>
Origin: upstream
Forwarded: not-needed
Applied-Upstream: https://github.com/gyoto/Gyoto/commit/94969913f20388c60b86bef6310b385072fa9c23
Last-Update: 2024-09-13
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/python/Makefile.in
+++ b/python/Makefile.in
@@ -214,7 +214,7 @@
 
 # Use the setup.py test command
 check:
-	LD_LIBRARY_PATH=../lib/.libs:$$LD_LIBRARY_PATH PYTHONPATH=.:$$PYTHONPATH $(PYTHON) setup.py test
+	LD_LIBRARY_PATH=../lib/.libs:$$LD_LIBRARY_PATH PYTHONPATH=.:$$PYTHONPATH $(PYTHON) -m unittest discover -s tests -p "*.py"
 
 # setup.py might complain if a directory doesn't exist so just in case, make the directory
 # here
--- a/python/setup.py.in
+++ b/python/setup.py.in
@@ -79,6 +79,5 @@
       version='@PACKAGE_VERSION@',
       author_email='@PACKAGE_BUGREPORT@',
       py_modules=pymodules,
-      ext_modules=extmodules,
-      test_suite='tests'
+      ext_modules=extmodules
      )
