Skip to content

Commit

Permalink
Replace 'setup.py test' that was removed in setuptools 72 with 'pytho…
Browse files Browse the repository at this point in the history
…n3 -m unittest'
  • Loading branch information
dmach committed Aug 27, 2024
1 parent 0d6f71a commit e19f1bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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') }}
Expand Down
2 changes: 1 addition & 1 deletion contrib/osc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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,-)
Expand Down

0 comments on commit e19f1bb

Please sign in to comment.