35 Commits

Author SHA1 Message Date
Noa
2721f2de3f Fix a bunch of random tests (#5533) 2025-02-25 08:41:54 +09:00
Hanif Ariffin
c9e62002ec Fixed the implementation of some math functions to match CPython closer. (#5510)
Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com>
2025-02-11 17:09:38 +09:00
4f5b26698c skip test 'super' object has no attribute 'getstate' 2024-11-11 00:17:57 +09:00
d887e5c24c first copy from cpython v3.12.3 2024-11-11 00:17:30 +09:00
jyj
8c9a33b737 Update random/test_random from CPython v3.11.2 2023-03-25 17:05:45 +09:00
snowapril
bcda616771 Remove expectedFailure decorator on success test
Signed-off-by: snowapril <sinjihng@gmail.com>
2022-02-06 14:56:39 +09:00
Noa
98f4a90908 Fix randbytes(0) 2022-02-06 14:56:39 +09:00
snowapril
bea21fa9af Fix os.urandom to accept isize and check negative
Signed-off-by: snowapril <sinjihng@gmail.com>
2022-02-06 14:56:39 +09:00
snowapril
04306973ed Fix getrandbits to check negative
Signed-off-by: snowapril <sinjihng@gmail.com>
2022-02-06 14:56:39 +09:00
snowapril
8d7a7e7cac Skip some error test cases
Signed-off-by: snowapril <sinjihng@gmail.com>
2022-02-06 14:56:39 +09:00
snowapril
d722a892de Update test_random.py to cpython 3.10
Signed-off-by: snowapril <sinjihng@gmail.com>
2022-02-06 14:56:39 +09:00
Padraic Fanning
4f6486da19 Unmark passing tests 2022-01-16 20:43:55 -05:00
Padraic Fanning
a4ef5f0fd1 Mark erroring tests 2022-01-16 20:39:26 -05:00
Padraic Fanning
d59042912e Update test_random.py to CPython 3.9 2022-01-16 13:59:10 -05:00
jfh
05c4fcf934 Allow any object as an argument for random.seed 2021-11-04 18:34:20 +02:00
jfh
aa00fe9c64 Mark failing tests in test_random. 2021-11-04 15:12:32 +02:00
jfh
950a2cfad3 Add test_random from CPython 3.8. 2021-11-04 14:56:09 +02:00
Noah
f9555fd75d Fix getrandbits for k>32 2021-04-07 10:52:40 -05:00
Noah
e6b5219393 Fix remaining test_random overflows 2021-04-05 23:15:25 -05:00
Padraic Fanning
5972965709 Unskip tests in test_random
Add randv2_32.pck, randv2_64.pck, and randv3.pck.
2021-02-25 22:50:48 -05:00
Padraic Fanning
c3eb6f2369 Explain test_random_subclass_with_kwargs skip 2021-02-07 16:17:54 -05:00
Padraic Fanning
71f849cf81 Explain the following skip:
test_gammavariate_alpha_equal_one_equals_expovariate
2021-02-07 16:17:19 -05:00
Padraic Fanning
a2d4bbd6c0 Explain test_zeroinputs skip 2021-02-07 16:15:17 -05:00
Padraic Fanning
bb8fb7b385 Explain test_randbelow_without_getrandbits skip 2021-02-07 16:13:50 -05:00
Padraic Fanning
74d241ce2e Explain test_setstate_middle_arg skip 2021-02-07 16:12:19 -05:00
Padraic Fanning
82687aae76 Explain test_pickling skip 2021-02-07 16:10:45 -05:00
Padraic Fanning
e898bad20f Explain test_bug_9025 skip 2021-02-07 16:09:21 -05:00
Padraic Fanning
f3a0e459a9 Explain test_bug_1727780 skip 2021-02-07 16:07:59 -05:00
Padraic Fanning
ec3bd14fdb Explain test_pickling skip 2021-02-07 16:06:49 -05:00
Padraic Fanning
a6164b7a28 Explain test_choice skip 2021-02-07 16:03:52 -05:00
Padraic Fanning
f4682f4989 Unskip test_seed_when_randomness_source_not_found 2021-02-07 16:01:20 -05:00
Padraic Fanning
35b7d9f69c Explain test_seedargs skip 2021-02-07 16:00:23 -05:00
Padraic Fanning
4f9b5e173d Explain test_autoseed skip 2021-02-07 15:57:28 -05:00
Robert Booth
1e3e3a0a9e fail/skip for test_random 3.8.7 2021-01-25 22:17:05 +09:00
Robert Booth
678625add2 test_random from v3.8.7 2021-01-25 22:14:25 +09:00