Replace whole repo with latest content from branch rhel-8.8.0
Content corresponds with RHEL dist-git commit a98ead0
This commit is contained in:
parent
4c79dcae7e
commit
98c81f0ae8
7
.gitignore
vendored
7
.gitignore
vendored
@ -1 +1,8 @@
|
||||
/pytest-mock-1.1.zip
|
||||
/pytest-mock-1.2.zip
|
||||
/pytest-mock-1.6.0.tar.gz
|
||||
/pytest-mock-1.6.2.tar.gz
|
||||
/pytest-mock-1.6.3.tar.gz
|
||||
/pytest-mock-1.7.0.tar.gz
|
||||
/pytest-mock-1.7.1.tar.gz
|
||||
/pytest-mock-1.9.0.tar.gz
|
||||
|
21
fix-for-pytest3.patch
Normal file
21
fix-for-pytest3.patch
Normal file
@ -0,0 +1,21 @@
|
||||
diff --git a/test_pytest_mock.py b/test_pytest_mock.py
|
||||
index 1e47d0e..e54649a 100644
|
||||
--- a/test_pytest_mock.py
|
||||
+++ b/test_pytest_mock.py
|
||||
@@ -176,7 +176,7 @@ def __test_failure_message(self, mocker, **kwargs):
|
||||
stub = mocker.stub(**kwargs)
|
||||
with pytest.raises(AssertionError) as exc_info:
|
||||
stub.assert_called_with()
|
||||
- assert exc_info.value.msg == expected_message
|
||||
+ assert str(exc_info.value) == expected_message
|
||||
|
||||
def test_failure_message_with_no_name(self, mocker):
|
||||
self.__test_failure_message(mocker)
|
||||
@@ -352,7 +352,7 @@ def assert_argument_introspection(left, right):
|
||||
# test was run by examining sys.argv
|
||||
verbose = any(a.startswith('-v') for a in sys.argv)
|
||||
expected = '\n '.join(util._compare_eq_iterable(left, right, verbose))
|
||||
- assert expected in e.msg
|
||||
+ assert expected in str(e)
|
||||
else:
|
||||
raise AssertionError("DID NOT RAISE")
|
Loading…
Reference in New Issue
Block a user