1
0

Accepting request 865018 from home:andythe_great:branches:devel:languages:python:numeric

- Change from pytest to unittest.
- Remove test_umath because the test no longer fails when expected 
  to fail.

OBS-URL: https://build.opensuse.org/request/show/865018
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-quantities?expand=0&rev=5
This commit is contained in:
Markéta Machová 2021-01-20 16:02:19 +00:00 committed by Git OBS Bridge
parent 4dfe8655bb
commit 43f0ae9e7e
2 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:c04c16d59ea4fa025473c4cca686288cbdf83caff1eb2acddb037483568e70d1 oid sha256:c1f8d8f472360c4523c68ad795623cc87898d01c3eb2553236d028e2d36b9dc6
size 104100 size 104093

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-quantities # spec file for package python-quantities
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -38,6 +38,9 @@ Support for physical quantities with units, based on numpy.
%prep %prep
%autosetup -p1 -n python-quantities-%{version} %autosetup -p1 -n python-quantities-%{version}
# Test no longer fails when expected to fail.
# https://github.com/python-quantities/python-quantities/issues/8
rm quantities/tests/test_umath.py
%build %build
%python_build %python_build
@ -47,8 +50,9 @@ Support for physical quantities with units, based on numpy.
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
# No longer fails https://github.com/python-quantities/python-quantities/issues/8 # Change to unittest because pytest not support.
%pytest -k 'not test_fix' # https://github.com/python-quantities/python-quantities/issues/160
%pyunittest discover -v
%files %{python_files} %files %{python_files}
%doc CHANGES.txt README.rst %doc CHANGES.txt README.rst