<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 28, 2016 at 5:00 PM Enrico Granata via lldb-commits <<a href="mailto:lldb-commits@lists.llvm.org">lldb-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
+        # This is the function to remove the custom formats in order to have a<br>
+        # clean slate for the next test case.<br>
+        def cleanup():<br>
+            self.runCmd('type category delete TSLSFormatters', check=False)<br>
+            self.runCmd('type format clear', check=False)<br>
+            self.runCmd('type summary clear', check=False)<br>
+            self.runCmd('type filter clear', check=False)<br>
+            self.runCmd('type synth clear', check=False)<br>
+<br>
+        self.addTearDownHook(cleanup)<br></blockquote><div>Can this go in either the tearDown() function (i.e. analogue to setUp() or in a try/finally block?  I'm planning to remove the teardownhook functionality in the future because it fundamentally doesn't work so the fewer we add the better. </div></div></div>