We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f65a37 commit a2c2b75Copy full SHA for a2c2b75
tests/test_main.py
@@ -60,8 +60,8 @@ def _sign_doc(self):
60
return sign
61
62
def _expect_sign_failure(self):
63
- exc_info = pytest.raises(xmlsec.Error, self._sign_doc)
64
- self.assertEqual(exc_info.value.args, (1, 'failed to sign'))
+ with self.assertRaisesRegex(xmlsec.Error, 'failed to sign'):
+ self._sign_doc()
65
66
def _register_mismatch_callbacks(self, match_cb=lambda filename: False):
67
xmlsec.register_callbacks(
0 commit comments