[Scipy-svn] r3358 - trunk/scipy/tests

scipy-svn@scip... scipy-svn@scip...
Sat Sep 22 22:02:50 CDT 2007


Author: jarrod.millman
Date: 2007-09-22 22:02:44 -0500 (Sat, 22 Sep 2007)
New Revision: 3358

Removed:
   trunk/scipy/tests/test_limits.py
Modified:
   trunk/scipy/tests/test_basic.py
   trunk/scipy/tests/test_basic1a.py
   trunk/scipy/tests/test_common.py
   trunk/scipy/tests/test_handy.py
Log:
remove references to limits


Modified: trunk/scipy/tests/test_basic.py
===================================================================
--- trunk/scipy/tests/test_basic.py	2007-09-23 03:02:13 UTC (rev 3357)
+++ trunk/scipy/tests/test_basic.py	2007-09-23 03:02:44 UTC (rev 3358)
@@ -3,7 +3,6 @@
 """
 
 import unittest
-import numpy.utils.limits as limits
 from numpy.test.testing import assert_array_equal, assert_equal
 from numpy.test.testing import assert_almost_equal, assert_array_almost_equal
 from scipy import *
@@ -45,7 +44,7 @@
         assert_almost_equal(std,1.0,1)
 
 
-val = limits.double_resolution
+#val = limits.double_resolution
 
 class test_eye(unittest.TestCase):
     def check_basic(self):

Modified: trunk/scipy/tests/test_basic1a.py
===================================================================
--- trunk/scipy/tests/test_basic1a.py	2007-09-23 03:02:13 UTC (rev 3357)
+++ trunk/scipy/tests/test_basic1a.py	2007-09-23 03:02:44 UTC (rev 3358)
@@ -3,7 +3,6 @@
 """
 
 import unittest
-import numpy.limits as limits
 from numpy.test.testing import assert_array_equal, assert_equal
 from numpy.test.testing import assert_almost_equal, assert_array_almost_equal
 from scipy import *

Modified: trunk/scipy/tests/test_common.py
===================================================================
--- trunk/scipy/tests/test_common.py	2007-09-23 03:02:13 UTC (rev 3357)
+++ trunk/scipy/tests/test_common.py	2007-09-23 03:02:44 UTC (rev 3358)
@@ -3,7 +3,6 @@
 """
 
 import unittest
-import numpy.limits as limits
 from numpy.test.testing import assert_array_equal, assert_equal
 from numpy.test.testing import assert_almost_equal, assert_array_almost_equal
 from numpy import sqrt, product, add,  ravel, mgrid

Modified: trunk/scipy/tests/test_handy.py
===================================================================
--- trunk/scipy/tests/test_handy.py	2007-09-23 03:02:13 UTC (rev 3357)
+++ trunk/scipy/tests/test_handy.py	2007-09-23 03:02:44 UTC (rev 3358)
@@ -3,7 +3,6 @@
 """
 
 import unittest
-import scipy.misc.limits as limits
 from numpy.testing import assert_array_equal, assert_equal
 from numpy.testing import assert_almost_equal, assert_array_almost_equal
 from scipy import *

Deleted: trunk/scipy/tests/test_limits.py
===================================================================
--- trunk/scipy/tests/test_limits.py	2007-09-23 03:02:13 UTC (rev 3357)
+++ trunk/scipy/tests/test_limits.py	2007-09-23 03:02:44 UTC (rev 3358)
@@ -1,44 +0,0 @@
-""" Test functions for limits module.
-
-    Currently empty -- not sure how to test these values
-    and routines as they are machine dependent.  Suggestions?
-"""
-
-from numpy import *
-import unittest
-import numpy.limits
-
-
-
-##################################################
-### Test for sum
-
-class test_float(unittest.TestCase):
-    def check_nothing(self):
-        pass
-
-class test_double(unittest.TestCase):
-    def check_nothing(self):
-        pass
-
-##################################################
-
-
-def test_suite(level=1):
-    suites = []
-    if level > 0:
-        suites.append( unittest.makeSuite(test_float,'check_') )
-        suites.append( unittest.makeSuite(test_double,'check_') )
-
-    total_suite = unittest.TestSuite(suites)
-    return total_suite
-
-def test(level=10):
-    all_tests = test_suite(level)
-    runner = unittest.TextTestRunner()
-    runner.run(all_tests)
-    return runner
-
-
-if __name__ == "__main__":
-    test()



More information about the Scipy-svn mailing list