[Scipy-svn] r6538 - branches/0.8.x/scipy/stats/tests

scipy-svn@scip... scipy-svn@scip...
Fri Jun 18 09:14:58 CDT 2010


Author: rgommers
Date: 2010-06-18 09:14:57 -0500 (Fri, 18 Jun 2010)
New Revision: 6538

Modified:
   branches/0.8.x/scipy/stats/tests/test_morestats.py
Log:
TST: filter test warning in test_morestats in 0.8.x branch.

Modified: branches/0.8.x/scipy/stats/tests/test_morestats.py
===================================================================
--- branches/0.8.x/scipy/stats/tests/test_morestats.py	2010-06-18 13:59:29 UTC (rev 6537)
+++ branches/0.8.x/scipy/stats/tests/test_morestats.py	2010-06-18 14:14:57 UTC (rev 6538)
@@ -1,9 +1,10 @@
 # Author:  Travis Oliphant, 2002
 #
 
+import warnings
+
 from numpy.testing import *
 
-
 import scipy.stats as stats
 
 import numpy as np
@@ -122,5 +123,8 @@
     assert_array_almost_equal(stats.mood(x1,x1**2),
             (-1.3830857299399906, 0.16663858066771478), 11)
 
+# First Anssari test yields this warning
+warnings.filterwarnings("ignore", "Ties preclude use of exact statistic")
+
 if __name__ == "__main__":
     run_module_suite()



More information about the Scipy-svn mailing list