[Numpy-discussion] Where does _assert_func come from.

Fernando Perez fperez.net@gmail....
Thu Aug 28 19:48:24 CDT 2008

On Thu, Aug 28, 2008 at 5:26 PM, Charles R Harris
<charlesr.harris@gmail.com> wrote:
> Where does _assert_func come from in this fragment from a test class?
> class _GenericTest(object):
>     def _test_equal(self, a, b):
>         self._assert_func(a, b)
> I hope it isn't monkey patched in.

It could be meant as a mix-in, case in which it would be ok for the
class to be incomplete as written.  A bit surprising, but not
necessarily incorrect.

If it's not meant to be a base/mix-in class, then it's a good ole'bug.



More information about the Numpy-discussion mailing list