forked from OSchip/llvm-project
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:
parent
eca1f36a54
commit
cbe1a331ae
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue