python-sure/python3.10-workaround.patch
Miro Hrončok 251226904c Python 3.10 workaround
In test_context_is_not_optional(), only check the exception type.

Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1889730

Reported upstream: https://github.com/gabrielfalcao/sure/issues/169
2020-10-23 10:57:51 +02:00

20 lines
653 B
Diff

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
)