commit 683d60d861e8b188dc65b1fe5dcf355468eee29b
Author: Jakub Bogusz <[email protected]>
Date:   Thu Apr 28 20:14:18 2022 +0200

    - added python3.10-workaround patch from Fedora

 python-sure-python3.10-workaround.patch | 19 +++++++++++++++++++
 python-sure.spec                        |  2 ++
 2 files changed, 21 insertions(+)
---
diff --git a/python-sure.spec b/python-sure.spec
index 51b428b..69c0bad 100644
--- a/python-sure.spec
+++ b/python-sure.spec
@@ -17,6 +17,7 @@ Group:                Libraries/Python
 Source0:       
https://files.pythonhosted.org/packages/source/s/sure/%{module}-%{version}.tar.gz
 # Source0-md5: 2944861acf83042a291ffb1190a56292
 Patch0:                %{name}-mock.patch
+Patch1:                %{name}-python3.10-workaround.patch
 URL:           https://github.com/gabrielfalcao/sure
 %if %{with python2}
 BuildRequires: python-devel >= 1:2.7
@@ -64,6 +65,7 @@ jest znaczÄ…co zainspirowany should.js.
 %prep
 %setup -q -n %{module}-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %if %{with python2}
diff --git a/python-sure-python3.10-workaround.patch 
b/python-sure-python3.10-workaround.patch
new file mode 100644
index 0000000..9191bab
--- /dev/null
+++ b/python-sure-python3.10-workaround.patch
@@ -0,0 +1,19 @@
+diff --git a/tests/test_old_api.py b/tests/test_old_api.py
+index d63d8fe..2f93bc5 100644
+--- a/tests/test_old_api.py
++++ b/tests/test_old_api.py
+@@ -57,10 +57,10 @@ def test_context_is_not_optional():
+         assert True
+ 
+     assert that(it_crashes).raises(
+-        TypeError, (
+-        "the function it_crashes defined at test_old_api.py line 56, is being 
"
+-        "decorated by either @that_with_context or @scenario, so it should "
+-        "take at least 1 parameter, which is the test context"),
++        TypeError,
++        # intentionally empty line 1
++        # intentionally empty line 2
++        # intentionally empty line 3
+     )
+ 
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sure.git/commitdiff/683d60d861e8b188dc65b1fe5dcf355468eee29b

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to