[Numpy-tickets] [NumPy] #957: decorators don't work with test generators
NumPy
numpy-tickets@scipy....
Mon Nov 24 00:55:07 CST 2008
#957: decorators don't work with test generators
----------------------------+-----------------------------------------------
Reporter: jarrod.millman | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.3.0
Component: numpy.testing | Version: devel
Severity: normal | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Comment (by jarrod.millman):
Here is the text of Fernando Perez' email, which describes the attached
patch:
{{{
Here's the diff for decorators, with an implementation that
works with generators and also allows the test condition to
be a callable (very useful for conditions that you want to
evaluate only at suite run time, not at import time). I
hadn't sent it because I wanted to polish it and write some
tests for it, but here it is for now.
I also included a patch for the verbosity problem: the issue is that
we're hardcoding '-s' in the test runner, which suppresses stdout
capture. This should instead be an option for the user (like
test(capture=False)). That diff just disables -s, so it's not
finished, but I don't have time right now to implement the complete
solution. At least I hope pointing in the right direction will be
useful if someone else can finish.
}}}
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/957#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list