From 43f0ae9e7e2e056966a647d758396cc345700ef07ceb525b3cebadca5f7dacd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 20 Jan 2021 16:02:19 +0000 Subject: [PATCH] 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 --- python-quantities-0.12.4.tar.gz | 4 ++-- python-quantities.spec | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/python-quantities-0.12.4.tar.gz b/python-quantities-0.12.4.tar.gz index b2d82ee..e02435b 100644 --- a/python-quantities-0.12.4.tar.gz +++ b/python-quantities-0.12.4.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c04c16d59ea4fa025473c4cca686288cbdf83caff1eb2acddb037483568e70d1 -size 104100 +oid sha256:c1f8d8f472360c4523c68ad795623cc87898d01c3eb2553236d028e2d36b9dc6 +size 104093 diff --git a/python-quantities.spec b/python-quantities.spec index 8fbe7e4..8cb9a94 100644 --- a/python-quantities.spec +++ b/python-quantities.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -38,6 +38,9 @@ Support for physical quantities with units, based on numpy. %prep %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 %python_build @@ -47,8 +50,9 @@ Support for physical quantities with units, based on numpy. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# No longer fails https://github.com/python-quantities/python-quantities/issues/8 -%pytest -k 'not test_fix' +# Change to unittest because pytest not support. +# https://github.com/python-quantities/python-quantities/issues/160 +%pyunittest discover -v %files %{python_files} %doc CHANGES.txt README.rst