From f72032de0b9f129dcfcf82f74b70773e777bdc82a36d02c083ef363dd52fda06 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 16 Aug 2020 17:53:32 +0000 Subject: [PATCH] Accepting request 827064 from home:jayvdb:py-submit Replace nose with pytest OBS-URL: https://build.opensuse.org/request/show/827064 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-msoffcrypto-tool?expand=0&rev=10 --- python-msoffcrypto-tool.changes | 5 +++++ python-msoffcrypto-tool.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-msoffcrypto-tool.changes b/python-msoffcrypto-tool.changes index cad8215..d45f7db 100644 --- a/python-msoffcrypto-tool.changes +++ b/python-msoffcrypto-tool.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Aug 16 15:25:25 UTC 2020 - John Vandenberg + +- Replace nose with pytest + ------------------------------------------------------------------- Mon May 25 06:50:54 UTC 2020 - Petr Gajdos diff --git a/python-msoffcrypto-tool.spec b/python-msoffcrypto-tool.spec index 39bc090..5b2ec5d 100644 --- a/python-msoffcrypto-tool.spec +++ b/python-msoffcrypto-tool.spec @@ -37,8 +37,8 @@ BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module coverage} BuildRequires: %{python_module cryptography >= 2.3} -BuildRequires: %{python_module nose} BuildRequires: %{python_module olefile >= 0.45} +BuildRequires: %{python_module pytest} # /SECTION %python_subpackages @@ -60,7 +60,8 @@ wc -c msoffcrypto/method/xor_obfuscation.py | sed -n '/^0/{s/^0\s//;p}' | xargs %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec -m nose --with-doctest +# pytest creates an illegitimate doctest case for __main__ which then fails +%pytest --doctest-modules -k 'not __main__' %post %python_install_alternative msoffcrypto-tool