Skip to content

Commit e19f1bb

Browse files
committed
Replace 'setup.py test' that was removed in setuptools 72 with 'python3 -m unittest'
1 parent 0d6f71a commit e19f1bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: |
3838
pip3 config set global.break-system-packages 1
3939
pip3 install -e .
40-
python3 setup.py test
40+
python3 -m unittest
4141
4242
unit:
4343
name: "unit"
@@ -109,7 +109,7 @@ jobs:
109109
run: |
110110
pip3 config set global.break-system-packages 1
111111
pip3 install -e .
112-
python3 setup.py test
112+
python3 -m unittest
113113
114114
- name: 'Generate coverage reports (openSUSE Tumbleweed)'
115115
if: ${{ contains(matrix.container, '/opensuse/tumbleweed') }}

contrib/osc.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ install -Dm0644 oscrc.5 %{buildroot}%{_mandir}/man5/oscrc.5
192192
%python3_fix_shebang
193193

194194
%check
195-
%{use_python} setup.py test
195+
%{use_python} -m unittest
196196

197197
%files
198198
%defattr(-,root,root,-)

0 commit comments

Comments
 (0)