-if the decorator functions called with optional arguments, return decorator to original method
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Can't you get rid of the if bugnumber: and just check for bugnumber is None inside expectedFailure()?
Comment Actions
Sorry for the delay. Had to spend some time to understand decorator in Python.
As suggested by Chaoren, removed bugnumber check from all caller functions, and handle None case in expectedFailure.
test/lldbtest.py | ||
---|---|---|
553 | Nit: "so it will be used to decorate original method" |
Nit: "so it will be used to decorate original method"