Merged update from upstream sources
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/python-sure.git#751af293b6c9b390640250fc2ef4ac0f54bc867e
This commit is contained in:
parent
e909b1f0b3
commit
02e9285c97
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 1.4.11
|
Version: 1.4.11
|
||||||
Release: 11%{?dist}
|
Release: 12%{?dist}
|
||||||
Summary: Utility belt for automated testing in Python
|
Summary: Utility belt for automated testing in Python
|
||||||
|
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
@ -13,6 +13,11 @@ Source0: %{pypi_source}
|
|||||||
# https://github.com/gabrielfalcao/sure/commit/9f0e834b2e5eea5dfe21d5be4ea6a3df47baf0b9
|
# https://github.com/gabrielfalcao/sure/commit/9f0e834b2e5eea5dfe21d5be4ea6a3df47baf0b9
|
||||||
Patch1: 9f0e834b2e5eea5dfe21d5be4ea6a3df47baf0b9.patch
|
Patch1: 9f0e834b2e5eea5dfe21d5be4ea6a3df47baf0b9.patch
|
||||||
|
|
||||||
|
# Python 3.10 workaround
|
||||||
|
# In test_context_is_not_optional(), only check the exception type
|
||||||
|
# https://github.com/gabrielfalcao/sure/issues/169
|
||||||
|
Patch2: python3.10-workaround.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@ -59,6 +64,9 @@ heavily inspired by should.js.
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.11-12
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.11-11
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.11-11
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
19
python3.10-workaround.patch
Normal file
19
python3.10-workaround.patch
Normal file
@ -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
|
||||||
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user