Blame SOURCES/fix-for-pytest3.patch

07645c
diff --git a/test_pytest_mock.py b/test_pytest_mock.py
07645c
index 1e47d0e..e54649a 100644
07645c
--- a/test_pytest_mock.py
07645c
+++ b/test_pytest_mock.py
07645c
@@ -176,7 +176,7 @@ def __test_failure_message(self, mocker, **kwargs):
07645c
         stub = mocker.stub(**kwargs)
07645c
         with pytest.raises(AssertionError) as exc_info:
07645c
             stub.assert_called_with()
07645c
-        assert exc_info.value.msg == expected_message
07645c
+        assert str(exc_info.value) == expected_message
07645c
 
07645c
     def test_failure_message_with_no_name(self, mocker):
07645c
         self.__test_failure_message(mocker)
07645c
@@ -352,7 +352,7 @@ def assert_argument_introspection(left, right):
07645c
         #       test was run by examining sys.argv
07645c
         verbose = any(a.startswith('-v') for a in sys.argv)
07645c
         expected = '\n  '.join(util._compare_eq_iterable(left, right, verbose))
07645c
-        assert expected in e.msg
07645c
+        assert expected in str(e)
07645c
     else:
07645c
         raise AssertionError("DID NOT RAISE")