Hello community, here is the log from the commit of package python-PyNaCl for openSUSE:Factory checked in at 2019-07-30 13:00:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-PyNaCl (Old) and /work/SRC/openSUSE:Factory/.python-PyNaCl.new.4126 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-PyNaCl" Tue Jul 30 13:00:58 2019 rev:5 rq:716282 version:1.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-PyNaCl/python-PyNaCl.changes 2019-06-06 18:14:50.248729686 +0200 +++ /work/SRC/openSUSE:Factory/.python-PyNaCl.new.4126/python-PyNaCl.changes 2019-07-30 13:01:00.154441340 +0200 @@ -1,0 +2,5 @@ +Thu Jul 18 11:12:47 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com> + +- add fix_tests.patch for new pytest + +------------------------------------------------------------------- New: ---- fix_tests.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-PyNaCl.spec ++++++ --- /var/tmp/diff_new_pack.nuugQF/_old 2019-07-30 13:01:01.338441156 +0200 +++ /var/tmp/diff_new_pack.nuugQF/_new 2019-07-30 13:01:01.342441155 +0200 @@ -27,6 +27,7 @@ Source: https://pypi.org/packages/source/P/PyNaCl/PyNaCl-%{version}.tar.gz # https://github.com/pyca/pynacl/commit/a8c08b18f3a2e8f2140c531afaf42715fcab68... Patch0: python-PyNaCl-hypothesis-remove-average_size.patch +Patch1: fix_tests.patch BuildRequires: %{python_module base} BuildRequires: %{python_module cffi} BuildRequires: %{python_module devel} @@ -50,7 +51,7 @@ %prep %setup -q -n PyNaCl-%{version} -%patch0 -p1 +%autopatch -p1 rm -Rf src/libsodium %build ++++++ fix_tests.patch ++++++
From 3479eaed36a32c6bd91331573a450a5bf099bdd5 Mon Sep 17 00:00:00 2001 From: Alex Gaynor <alex.gaynor@gmail.com> Date: Mon, 1 Jul 2019 00:11:38 -0400 Subject: [PATCH] Fixed tests for change in pytest repr (#546)
* Fixed tests for change in pytest repr * Fixed tests for change in pytest repr * Fixed tests for change in pytest repr * Fixed tests for change in pytest repr --- tests/test_box.py | 2 +- tests/test_sealed_box.py | 2 +- tests/test_secret.py | 2 +- tests/test_signing.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_box.py b/tests/test_box.py index d547ac27..46f3b793 100644 --- a/tests/test_box.py +++ b/tests/test_box.py @@ -268,7 +268,7 @@ def test_box_wrong_length(): def check_type_error(expected, f, *args): with pytest.raises(TypeError) as e: f(*args) - assert expected in str(e) + assert expected in str(e.value) def test_wrong_types(): diff --git a/tests/test_sealed_box.py b/tests/test_sealed_box.py index f7ba15c3..49ea2324 100644 --- a/tests/test_sealed_box.py +++ b/tests/test_sealed_box.py @@ -110,7 +110,7 @@ def test_sealed_box_decryption(privalice, pubalice, plaintext, encrypted): def check_type_error(expected, f, *args): with pytest.raises(TypeError) as e: f(*args) - assert expected in str(e) + assert expected in str(e.value) def test_wrong_types(): diff --git a/tests/test_secret.py b/tests/test_secret.py index 3b52459a..73987fcb 100644 --- a/tests/test_secret.py +++ b/tests/test_secret.py @@ -142,7 +142,7 @@ def test_secret_box_wrong_lengths(): def check_type_error(expected, f, *args): with pytest.raises(TypeError) as e: f(*args) - assert expected in str(e) + assert expected in str(e.value) def test_wrong_types(): diff --git a/tests/test_signing.py b/tests/test_signing.py index 4304afb9..3e2cf359 100644 --- a/tests/test_signing.py +++ b/tests/test_signing.py @@ -219,7 +219,7 @@ def test_key_conversion(self): def check_type_error(expected, f, *args): with pytest.raises(TypeError) as e: f(*args) - assert expected in str(e) + assert expected in str(e.value) def test_wrong_types():