diff options
author | Kevin Sheppard <kevin.k.sheppard@gmail.com> | 2019-05-29 18:14:43 +0100 |
---|---|---|
committer | Kevin Sheppard <kevin.k.sheppard@gmail.com> | 2019-05-29 23:39:29 +0100 |
commit | 5a105dc6133000bcb4de6b30081605718522b0bf (patch) | |
tree | fa37c99f2851db4fdee9d1772571008a0c88ddf4 /numpy/random/tests/test_randomstate_regression.py | |
parent | 48547423ce61c82b13dc0c400b2a57bad219cab1 (diff) | |
download | numpy-5a105dc6133000bcb4de6b30081605718522b0bf.tar.gz |
BUG: Fix RandomState argument name
RandomState's argument must be named seed for backward compat
closes #13669
Diffstat (limited to 'numpy/random/tests/test_randomstate_regression.py')
-rw-r--r-- | numpy/random/tests/test_randomstate_regression.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/random/tests/test_randomstate_regression.py b/numpy/random/tests/test_randomstate_regression.py index 5bb1ddde5..cdd905929 100644 --- a/numpy/random/tests/test_randomstate_regression.py +++ b/numpy/random/tests/test_randomstate_regression.py @@ -164,3 +164,9 @@ class TestRegression(object): other_byteord_dt = '<i4' if sys.byteorder == 'big' else '>i4' with pytest.deprecated_call(match='non-native byteorder is not'): random.randint(0, 200, size=10, dtype=other_byteord_dt) + + def test_named_argument_initialization(self): + # GH 13669 + rs1 = np.random.RandomState(123456789) + rs2 = np.random.RandomState(seed=123456789) + assert rs1.randint(0, 100) == rs2.randint(0, 100) |