diff options
author | Victor Stinner <vstinner@python.org> | 2020-03-10 15:15:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 15:15:14 +0100 |
commit | 00d7cd8ab8db2c1e1f591ade828f88a1a973d70f (patch) | |
tree | 9de12914f0f8d11ef0d776e3d6f5906e84675541 /Lib/test/test_random.py | |
parent | 8510f430781118d9b603c3a2f06945d6ebc5fe42 (diff) | |
download | cpython-git-00d7cd8ab8db2c1e1f591ade828f88a1a973d70f.tar.gz |
bpo-38075: Fix random_seed(): use PyObject_CallOneArg() (GH-18897)
Fix the random.Random.seed() method when a bool is passed as the
seed.
PyObject_Vectorcall() was misused: use PyObject_CallOneArg() instead.
Diffstat (limited to 'Lib/test/test_random.py')
-rw-r--r-- | Lib/test/test_random.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py index 2c8c8e8854..c147105376 100644 --- a/Lib/test/test_random.py +++ b/Lib/test/test_random.py @@ -42,7 +42,7 @@ class TestBasicOps: def __hash__(self): return -1729 for arg in [None, 0, 1, -1, 10**20, -(10**20), - 3.14, 'a']: + False, True, 3.14, 'a']: self.gen.seed(arg) for arg in [1+2j, tuple('abc'), MySeed()]: |