Permalink
Browse files

TST: linalg: set random seeds in tests

  • Loading branch information...
1 parent dae0b0b commit 0f7ae6bafc0880c251f094d4b3f249434ee276d4 @pv committed Nov 28, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 scipy/linalg/tests/test_basic.py
View
9 scipy/linalg/tests/test_basic.py
@@ -263,6 +263,8 @@ def test_bad_shapes(self):
class TestSolve(TestCase):
+ def setUp(self):
+ np.random.seed(1234)
def test_20Feb04_bug(self):
a = [[1,1],[1.0,0]] # ok
@@ -416,6 +418,8 @@ def test_check_finite(self):
class TestInv(TestCase):
+ def setUp(self):
+ np.random.seed(1234)
def test_simple(self):
a = [[1,2],[3,4]]
@@ -457,6 +461,8 @@ def test_check_finite(self):
class TestDet(TestCase):
+ def setUp(self):
+ np.random.seed(1234)
def test_simple(self):
a = [[1,2],[3,4]]
@@ -501,6 +507,9 @@ def direct_lstsq(a,b,cmplx=0):
return solve(a1, b1)
class TestLstsq(TestCase):
+ def setUp(self):
+ np.random.seed(1234)
+
def test_random_overdet_large(self):
#bug report: Nils Wagner
n = 200

0 comments on commit 0f7ae6b

Please sign in to comment.