Numeric array in unittest problem

Peter Hansen peter at engcorp.com
Mon Nov 21 09:12:05 EST 2005


ajikoe at gmail.com wrote:
> hello,
> 
> I found that if I use Numeric.array into unittest it is not
> consistance,
> Is that normal ?
> 
> import Numeric
> class myTest(unittest.TestCase):
>     def runTest(self):
>         a = Numeric.array([1,2])
>         b = Numeric.array([1,33])
>         self.assertEqual(a, b)
>     pass
> 
> 
> This will not raise any error ???

Code that doesn't execute at all generally raises no errors...

-Peter



More information about the Python-list mailing list