From e19f1bb5d9cbe86dee926959c952f4d7ab8df6be Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Tue, 27 Aug 2024 10:58:39 +0200 Subject: [PATCH] Replace 'setup.py test' that was removed in setuptools 72 with 'python3 -m unittest' --- .github/workflows/tests.yaml | 4 ++-- contrib/osc.spec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index c09014bf..59215f85 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -37,7 +37,7 @@ jobs: run: | pip3 config set global.break-system-packages 1 pip3 install -e . - python3 setup.py test + python3 -m unittest unit: name: "unit" @@ -109,7 +109,7 @@ jobs: run: | pip3 config set global.break-system-packages 1 pip3 install -e . - python3 setup.py test + python3 -m unittest - name: 'Generate coverage reports (openSUSE Tumbleweed)' if: ${{ contains(matrix.container, '/opensuse/tumbleweed') }} diff --git a/contrib/osc.spec b/contrib/osc.spec index f65c6e98..c18e3026 100644 --- a/contrib/osc.spec +++ b/contrib/osc.spec @@ -192,7 +192,7 @@ install -Dm0644 oscrc.5 %{buildroot}%{_mandir}/man5/oscrc.5 %python3_fix_shebang %check -%{use_python} setup.py test +%{use_python} -m unittest %files %defattr(-,root,root,-)