[master 5/8] Add the translated string to markup error messages.

dashea installerbot-noreply at redhat.com
Thu Nov 5 19:37:13 UTC 2015


From: David Shea <dshea at redhat.com>

---
 tests/glade/check_markup.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/glade/check_markup.py b/tests/glade/check_markup.py
index e1bd7d7..894d6d5 100644
--- a/tests/glade/check_markup.py
+++ b/tests/glade/check_markup.py
@@ -64,11 +64,11 @@ def checkGlade(self, glade_tree):
 
                 # Check if the markup is necessary
                 self.assertTrue(markup_necessary(pango_tree),
-                        msg="Markup could be expressed as attributes at %s%s:%d" %
-                            (label.base, lang_str, label.sourceline))
+                        msg="Markup %s could be expressed as attributes at %s%s:%d" %
+                            (label.text, label.base, lang_str, label.sourceline))
             except etree.XMLSyntaxError:
-                raise AssertionError("Unable to parse pango markup at %s%s:%d" %
-                        (label.base, lang_str, label.sourceline))
+                raise AssertionError("Unable to parse pango markup %s at %s%s:%d" %
+                        (label.text, label.base, lang_str, label.sourceline))
             except PangoElementException as px:
                 raise AssertionError("Invalid pango element %s at %s%s:%d" %
                         (px.element, label.base, lang_str, label.sourceline))
@@ -78,5 +78,5 @@ def checkGlade(self, glade_tree):
             orig_markup = label.get("original_text")
             if orig_markup:
                 self.assertTrue(markup_match(label.text, orig_markup),
-                        msg="Translated markup does not contain the same elements and attributes at %s%s:%d" %
-                                (label.base, lang_str, label.sourceline))
+                        msg="Translated markup %s does not contain the same elements and attributes at %s%s:%d" %
+                                (label.text, label.base, lang_str, label.sourceline))


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/c1c1ea759a4810fa98793c3aed5dcd933795e095


More information about the anaconda-patches mailing list