Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

TST: linalg: set random seeds in tests

  • Loading branch information...
commit 0f7ae6bafc0880c251f094d4b3f249434ee276d4 1 parent dae0b0b
Pauli Virtanen authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 scipy/linalg/tests/test_basic.py
9 scipy/linalg/tests/test_basic.py
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.