<div dir="ltr">Yea so basically what it does is allow you to use the same decorator with arguments or without arguments.  Like this:<div><br></div><div>@expectedFailureWindows   # Python actually calls expectedFailureWindows(func)</div><div>@expectedFailureWindows(debug_info='dwarf') # Python calls <span style="line-height:1.5">expectedFailureWindows(debug_info='dwarf')(func)</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">If the goal is to delete all the highly specialized decorators (after all, expectedFailureWindows is just expectedFailureAll(oslist=['windows'])) then this problem goes away  by itself once everything is using expectedFailureAll, since that will always be called with arguments.</span></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 27, 2016 at 8:31 AM Todd Fiala <<a href="mailto:todd.fiala@gmail.com">todd.fiala@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 26, 2016 at 5:43 PM, Zachary Turner <span dir="ltr"><<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">zturner updated this revision to Diff 46086.<br>
zturner added a comment.<br>
<br>
Add back the check for `six.callable`.  Also added a detailed comment explaining what this atrocity actually does.<br></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Yeah - I was thinking that actually caught some ugliness that accepted either passing or not passing in the bug number, or something like that.  If that's what it is for, I wouldn't be against requiring bug number arguments, or making them optional with a named arg.</div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Note that this problem will go away by design once we reduce some of the more superfluous decorators.<br>
<div><div><br>
<br>
<a href="http://reviews.llvm.org/D16615" rel="noreferrer" target="_blank">http://reviews.llvm.org/D16615</a><br>
<br>
Files:<br>
  packages/Python/lldbsuite/test/functionalities/jitloader_gdb/TestJITLoaderGDB.py<br>
  packages/Python/lldbsuite/test/lldbtest.py<br>
<br>
</div></div></blockquote></div></div></div><div dir="ltr"><div class="gmail_extra"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">-Todd</div></div>
</div></div></blockquote></div>