diff --git a/ipatests/test_ipaclient/test_csrgen.py b/ipatests/test_ipaclient/test_csrgen.py index be8b440b0..625e1eba5 100644 --- a/ipatests/test_ipaclient/test_csrgen.py +++ b/ipatests/test_ipaclient/test_csrgen.py @@ -259,7 +259,7 @@ class test_CSRGenerator: with pytest.raises( errors.CSRTemplateError, - message='unrecognised attribute type: X'): + match=r'^unrecognised attribute type: X$'): csrgen_ffi.build_requestinfo( config.encode('utf-8'), adaptor.get_subject_public_key_info())