diff options
author | mattip <matti.picus@gmail.com> | 2019-06-25 18:36:26 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-06-25 18:36:26 +0300 |
commit | 083be1f81f25fc548f091f72105f69391bc1a33d (patch) | |
tree | a65532df7fdeef1fce62528a29f87324d4c2afc6 /numpy/random/tests | |
parent | 5a7a4a450295ebe0eb37905d967a3279d4ccdc4d (diff) | |
download | numpy-083be1f81f25fc548f091f72105f69391bc1a33d.tar.gz |
MAINT: remove pcg32 BitGenerator
Diffstat (limited to 'numpy/random/tests')
-rw-r--r-- | numpy/random/tests/test_direct.py | 16 | ||||
-rw-r--r-- | numpy/random/tests/test_smoke.py | 15 |
2 files changed, 2 insertions, 29 deletions
diff --git a/numpy/random/tests/test_direct.py b/numpy/random/tests/test_direct.py index 534fe2b6d..051199217 100644 --- a/numpy/random/tests/test_direct.py +++ b/numpy/random/tests/test_direct.py @@ -6,7 +6,7 @@ from numpy.testing import (assert_equal, assert_allclose, assert_array_equal, assert_raises) import pytest -from numpy.random import (Generator, MT19937, ThreeFry, PCG32, PCG64, +from numpy.random import (Generator, MT19937, ThreeFry, PCG64, Philox, Xoshiro256, Xoshiro512, RandomState) from numpy.random.common import interface @@ -435,20 +435,6 @@ class TestPCG64(Base): assert val_neg == val_pos assert val_big == val_pos -class TestPCG32(TestPCG64): - @classmethod - def setup_class(cls): - cls.bit_generator = PCG32 - cls.bits = 32 - cls.dtype = np.uint32 - cls.data1 = cls._read_csv(join(pwd, './data/pcg32-testset-1.csv')) - cls.data2 = cls._read_csv(join(pwd, './data/pcg32-testset-2.csv')) - cls.seed_error_type = TypeError - cls.invalid_seed_types = [(np.array([1, 2]),), (3.2,), - (None, np.zeros(1))] - cls.invalid_seed_values = [(-1,), (2 ** 129 + 1,), (None, -1), - (None, 2 ** 129 + 1)] - class TestMT19937(Base): @classmethod diff --git a/numpy/random/tests/test_smoke.py b/numpy/random/tests/test_smoke.py index ba7f72159..d571e6548 100644 --- a/numpy/random/tests/test_smoke.py +++ b/numpy/random/tests/test_smoke.py @@ -6,7 +6,7 @@ import numpy as np import pytest from numpy.testing import assert_equal, assert_, assert_array_equal from numpy.random import (Generator, MT19937, ThreeFry, - PCG32, PCG64, Philox, Xoshiro256, Xoshiro512, + PCG64, Philox, Xoshiro256, Xoshiro512, entropy) @@ -867,16 +867,3 @@ class TestPCG64(RNG): seed = np.array([1, 2, 3, out_of_bounds]) with pytest.raises(error_type): self.rg.bit_generator.seed(seed) - - -class TestPCG32(TestPCG64): - @classmethod - def setup_class(cls): - cls.bit_generator = PCG32 - cls.advance = 2 ** 48 + 2 ** 21 + 2 ** 16 + 2 ** 5 + 1 - cls.seed = [2 ** 48 + 2 ** 21 + 2 ** 16 + 2 ** 5 + 1, - 2 ** 21 + 2 ** 16 + 2 ** 5 + 1] - cls.rg = Generator(cls.bit_generator(*cls.seed)) - cls.initial_state = cls.rg.bit_generator.state - cls.seed_vector_bits = None - cls._extra_setup() |