@@ -468,7 +468,7 @@ def test_assert_dict_equal__custom_key_message(self):
468468
469469 def test_assert_dict_equal__custom_value_message (self ):
470470 with _assert_raises_assertion (
471- "key 'foo' differs: 5 != 10;{'foo': 5};{'foo': 10};" " 'foo';5;10"
471+ "key 'foo' differs: 5 != 10;{'foo': 5};{'foo': 10};'foo';5;10"
472472 ):
473473 assert_dict_equal (
474474 {"foo" : 5 },
@@ -514,18 +514,17 @@ def test_assert_dict_superset__message_precedence(self):
514514
515515 def test_assert_dict_superset__custom_key_message (self ):
516516 with _assert_raises_assertion (
517- "key 'foo' missing from right dict;"
518- "{'foo': ''};{'bar': ''};['foo']"
517+ "key 'foo' missing from right dict;{'foo': ''};{'bar': ''};['foo']"
519518 ):
520519 assert_dict_superset (
521520 {"foo" : "" },
522521 {"bar" : "" },
523- key_msg_fmt = "{msg};{first!r};{second!r};" " {missing_keys!r}" ,
522+ key_msg_fmt = "{msg};{first!r};{second!r};{missing_keys!r}" ,
524523 )
525524
526525 def test_assert_dict_superset__custom_value_message (self ):
527526 with _assert_raises_assertion (
528- "key 'foo' differs: 5 != 10;{'foo': 5};{'foo': 10};" " 'foo';5;10"
527+ "key 'foo' differs: 5 != 10;{'foo': 5};{'foo': 10};'foo';5;10"
529528 ):
530529 assert_dict_superset (
531530 {"foo" : 5 },
@@ -606,8 +605,7 @@ def test_assert_regex__does_not_match_regex__default_message(self):
606605
607606 def test_assert_regex__does_not_match_string__custom_message (self ):
608607 with _assert_raises_assertion (
609- "'Wrong text' does not match 'not found';"
610- "'Wrong text';'not found'"
608+ "'Wrong text' does not match 'not found';'Wrong text';'not found'"
611609 ):
612610 assert_regex (
613611 "Wrong text" , r"not found" , "{msg};{text!r};{pattern!r}"
@@ -616,8 +614,7 @@ def test_assert_regex__does_not_match_string__custom_message(self):
616614 def test_assert_regex__does_not_match_regex__custom_message (self ):
617615 regex = re .compile (r"not found" )
618616 with _assert_raises_assertion (
619- "'Wrong text' does not match 'not found';'Wrong text';"
620- "'not found'"
617+ "'Wrong text' does not match 'not found';'Wrong text';'not found'"
621618 ):
622619 assert_regex ("Wrong text" , regex , "{msg};{text!r};{pattern!r}" )
623620
0 commit comments