Fixed an issue where we might cause our test suite to exit if we end up

concatenating a string with "None" in python. Using a python format string
gets us around this by handling it gracefully.

llvm-svn: 145225
This commit is contained in:
Greg Clayton 2011-11-28 03:17:13 +00:00
parent eca1f36a54
commit cbe1a331ae
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class SynthDataFormatterTestCase(TestBase):
'z = 8'])
# Same output, but using Python
self.runCmd("type summary add BagOfInts --python-script \"return 'y='+valobj.GetChildMemberWithName('y').GetValue()\" -e")
self.runCmd("type summary add BagOfInts --python-script \"return 'y=%s' % valobj.GetChildMemberWithName('y').GetValue()\" -e")
self.expect('frame variable int_bag',
substrs = ['y=7',
'x = 6',