]> git.pld-linux.org Git - packages/python-sure.git/commitdiff
- added python3.10-workaround patch from Fedora auto/th/python-sure-2.0.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 28 Apr 2022 18:14:18 +0000 (20:14 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 28 Apr 2022 18:14:18 +0000 (20:14 +0200)
python-sure-python3.10-workaround.patch [new file with mode: 0644]
python-sure.spec

diff --git a/python-sure-python3.10-workaround.patch b/python-sure-python3.10-workaround.patch
new file mode 100644 (file)
index 0000000..9191bab
--- /dev/null
@@ -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
+     )
index 51b428ba258f427545d8c32ad397991b39b17ddf..69c0bad27ad95ba8c78a80f2beaa0d98f2754d36 100644 (file)
@@ -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}
This page took 0.243559 seconds and 4 git commands to generate.