Simple refactoring.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@115075 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/types/AbstractBase.py b/test/types/AbstractBase.py
index e2189c5..0cc4412 100644
--- a/test/types/AbstractBase.py
+++ b/test/types/AbstractBase.py
@@ -16,6 +16,9 @@
     # printf() stmts (see basic_type.cpp).
     pattern = re.compile(" (\*?a[^=]*) = '([^=]*)'$")
 
+    # Assert message.
+    DATA_TYPE_GROKKED = "Data type from expr parser output is parsed correctly"
+
     def generic_type_tester(self, atoms, quotedDisplay=False):
         """Test that variables with basic types are displayed correctly."""
 
@@ -80,7 +83,7 @@
             try:
                 dt = re.match("^\((.*)\)", output).group(1)
             except:
-                self.fail("Data type from expression parser is parsed correctly")
+                self.fail(self.DATA_TYPE_GROKKED)
 
             # Expect the display type string to contain each and every atoms.
             self.expect(dt,
@@ -140,7 +143,7 @@
             try:
                 dt = re.match("^\$[0-9]+ = \((.*)\)", output).group(1)
             except:
-                self.fail("Data type from expression parser is parsed correctly")
+                self.fail(self.DATA_TYPE_GROKKED)
 
             # Expect the display type string to contain each and every atoms.
             self.expect(dt,