[Scipy-svn] r3242 - branches/0.5.2.x/Lib/odr/tests

scipy-svn@scip... scipy-svn@scip...
Tue Aug 14 19:53:16 CDT 2007


Author: jarrod.millman
Date: 2007-08-14 19:53:14 -0500 (Tue, 14 Aug 2007)
New Revision: 3242

Modified:
   branches/0.5.2.x/Lib/odr/tests/test_odr.py
Log:
more synching with trunk


Modified: branches/0.5.2.x/Lib/odr/tests/test_odr.py
===================================================================
--- branches/0.5.2.x/Lib/odr/tests/test_odr.py	2007-08-15 00:52:41 UTC (rev 3241)
+++ branches/0.5.2.x/Lib/odr/tests/test_odr.py	2007-08-15 00:53:14 UTC (rev 3242)
@@ -1,16 +1,14 @@
-
 # Standard library imports.
 import cPickle
-import unittest
 
 # Scipy imports.
 import numpy as np
 from numpy import pi
-from numpy.testing import assert_array_almost_equal
-from scipy.sandbox.odr import Data, Model, ODR, RealData, odr_stop
+from numpy.testing import NumpyTest, NumpyTestCase, assert_array_almost_equal
+from scipy.odr import Data, Model, ODR, RealData, odr_stop
 
 
-class ODRTestCase(unittest.TestCase):
+class test_odr(NumpyTestCase):
 
     # Explicit Example
 
@@ -312,7 +310,7 @@
         )
 
 
-if __name__ == '__main__':
-    unittest.main()
+if __name__ == "__main__":
+    NumpyTest().run()
 
 #### EOF #######################################################################



More information about the Scipy-svn mailing list