diff options
author | Antony Lee <anntzer.lee@gmail.com> | 2016-01-12 17:43:22 -0800 |
---|---|---|
committer | Antony Lee <anntzer.lee@gmail.com> | 2016-01-16 20:56:42 -0800 |
commit | 309fdd4cd1400fc392acfa418226bd7f8b10073d (patch) | |
tree | 0a1a1aaa4f7b62817c3a7434a0bd1c8d58545e8f /numpy/random/tests/test_random.py | |
parent | b8cf7f904974294d4e3af43c68ef23f87385f2f6 (diff) | |
download | numpy-309fdd4cd1400fc392acfa418226bd7f8b10073d.tar.gz |
Revert to non-generative test.
Diffstat (limited to 'numpy/random/tests/test_random.py')
-rw-r--r-- | numpy/random/tests/test_random.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/numpy/random/tests/test_random.py b/numpy/random/tests/test_random.py index e3391a9a2..96aa3790f 100644 --- a/numpy/random/tests/test_random.py +++ b/numpy/random/tests/test_random.py @@ -210,13 +210,12 @@ class TestRandint(TestCase): assert_(tgt[np.dtype(np.bool).name] == res) -class TestRandomDist: +class TestRandomDist(TestCase): # Make sure the random distribution returns the correct value for a # given seed - @classmethod - def setup_class(cls): - cls.seed = 1234567890 + def setUp(self): + self.seed = 1234567890 def test_rand(self): np.random.seed(self.seed) @@ -392,7 +391,7 @@ class TestRandomDist: np.random.shuffle(alist) actual = alist desired = conv([0, 1, 9, 6, 2, 4, 5, 8, 7, 3]) - yield np.testing.assert_array_equal, actual, desired + np.testing.assert_array_equal(actual, desired) def test_shuffle_masked(self): # gh-3263 |