[Numpy-discussion] tests with generators & nose: a warning

Ralf Gommers ralf.gommers at googlemail.com
Sun Apr 3 10:10:25 EDT 2011

Hi all,

I just came across tests for allclose that were using generators and
were in a subclass of unittest.TestCase. These tests won't run, nose
does not support this (see last line of
So if you write tests with "yield", don't subclass from TestCase!

I'll open a ticket for this and check more, but I thought this was
important and obscure enough to send a warning.


More information about the NumPy-Discussion mailing list