14
0
Files
python-pyshould/fix-assertion-method.patch
Steve Kowalik e5c1284852 - Add patch fix-assertion-method.patch:
* Fix assertion methods.
- Switch to pyproject and autosetup macros.
- Less globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyshould?expand=0&rev=13
2024-03-11 06:54:14 +00:00

21 lines
835 B
Diff

Index: pyshould-0.7.1/tests/dsl.py
===================================================================
--- pyshould-0.7.1.orig/tests/dsl.py
+++ pyshould-0.7.1/tests/dsl.py
@@ -94,13 +94,13 @@ class DslTestCase(unittest.TestCase):
def nested_expression_ok():
with should.throw(TypeError):
1 | should.equal(1)
- self.assertRaisesRegexp(AssertionError,
+ self.assertRaisesRegex(AssertionError,
'TypeError', nested_expression_ok)
def nested_expression_fail():
with should.throw(TypeError):
1 | should.equal(2)
- self.assertRaisesRegexp(AssertionError,
+ self.assertRaisesRegex(AssertionError,
'<2>', nested_expression_fail)
with should.throw(TypeError):