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