110 Commits (278c1e159c970da6cd6683d18c6211f5118674cc)

Author SHA1 Message Date
Victor Stinner 278c1e159c
bpo-40094: Add test.support.wait_process() (GH-19254) 6 years ago
Victor Stinner 00d7cd8ab8
bpo-38075: Fix random_seed(): use PyObject_CallOneArg() (GH-18897) 6 years ago
Raymond Hettinger 041d8b48a2
bpo-38881: choices() raises ValueError when all weights are zero (GH-17362) 6 years ago
Xtreak a06d683d7f bpo-38120: Fix DeprecationWarning in test_random for invalid type of arguments to random.seed. (GH-15987) 6 years ago
Min ho Kim 96e12d5f4f Fix typos in docs, comments and test assert messages (#14872) 7 years ago
penguindustin 9646630895 bpo-36766: Typos in docs and code comments (GH-13116) 7 years ago
Serhiy Storchaka 5b10b98247
bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929) 7 years ago
leodema 63d152232e bpo-30561: Sync-up expovariate() and gammavariate code (GH-1934) 7 years ago
Raymond Hettinger ddf7171911
bpo-24567: Random subnormal.diff (#7954) 8 years ago
Serhiy Storchaka ec1622d56c
bpo-33144: Fix choosing random.Random._randbelow implementation. (GH-6563) 8 years ago
Wolfgang Maier ba3a87aca3 bpo-33144: random.Random and subclasses: split _randbelow implementation (GH-6291) 8 years ago
Wolfgang Maier 091e95e900 bpo-33203: Ensure random.choice always raises IndexError on empty sequence (GH-6338) 8 years ago
Mike 53f7a7c281 bpo-32297: Few misspellings found in Python source code comments. (#4803) 8 years ago
Oren Milman d780b2d588 bpo-31478: Fix an assertion failure in random.seed() in case a seed has a bad __abs__() method. (#3596) 8 years ago
Raymond Hettinger 132a7d7cdb bpo-31482: Missing bytes support for random.seed() version 1 (#3614) 8 years ago
Victor Stinner da5e930187 bpo-31160: Fix test_random for zombie process (#3045) 8 years ago
Antoine Pitrou 346cbd351e bpo-16500: Allow registering at-fork handlers (#1715) 9 years ago
csabella f111fd2e65 bpo-30308: Code coverage for argument in random.shuffle (#1504) 9 years ago
bladebryan 9616a82e78 bpo-29960 _random.Random corrupted on exception in setstate(). (#1019) 9 years ago
Raymond Hettinger 6023d33433 Issue #28743: Reduce memory consumption for random module tests 9 years ago
Raymond Hettinger bf87126a63 Issue 28475: Improve error message for random.sample() with k < 0. (Contributed by Francisco Couzo). 9 years ago
Raymond Hettinger 24e4239434 Fix typos 9 years ago
Raymond Hettinger 77d574d4ae Issue #18844: Strengthen tests to include a case with unequal weighting 9 years ago
Raymond Hettinger 30d00e54dd Issue #18844: Make the various ways for specifing weights produce the same results. 9 years ago
Victor Stinner bd1b49a242 Close #28476: Reuse math.factorial() in test_random 9 years ago
Raymond Hettinger 7b16652f1c Issue #18844: Add more tests 9 years ago
Raymond Hettinger 1c3a121bb0 Issue #18844: Fix-up examples for random.choices(). Remove over-specified test. 9 years ago
Raymond Hettinger 9016f2864a Issue #18844: Make the number of selections a keyword-only argument for random.choices(). 9 years ago
Raymond Hettinger c7bab7cbf5 Issue #27706: Fix regression in random.seed(somestr, version=1) 9 years ago
Raymond Hettinger 28aa4a0684 Rename weighted_choices() to just choices() 9 years ago
Raymond Hettinger e8f1e002c6 Issue #18844: Add random.weighted_choices() 9 years ago
Martin Panter e26da7c03a Issue #27171: Fix typos in documentation, comments, and test function names 10 years ago
Serhiy Storchaka 178f0b6ddc Issue #24620: Random.setstate() now validates the value of state last element. 11 years ago
Serhiy Storchaka bad1257c96 Issue #22777: Test pickling with all protocols. 11 years ago
Raymond Hettinger 978c6abced Issue 13355: Make random.triangular degrade gracefully when low == high. 12 years ago
Serhiy Storchaka b992a0e102 Issue #19936: Added executable bits or shebang lines to Python scripts which 12 years ago
Zachary Ware a6edea530b Issue #19588: Fixed tests in test_random that were silently skipped most 12 years ago
Ezio Melotti 3e4a98bd1c #17789: test_random now works with unittest test discovery. Patch by Zachary Ware. 13 years ago
Andrew Svetlov b4fd468f12 Revert changes for #13355 by request from Raymond Hettinger 13 years ago
Andrew Svetlov eff6444751 Fix whitespaces 13 years ago
Andrew Svetlov a2dfc35a13 Issue #13355: Raise ValueError on random.triangular call with invalid params. 13 years ago
R David Murray e3e1c17e08 #17492: Additional tests for random module. 13 years ago
Serhiy Storchaka 6c22b1d760 Issue #17141: random.vonmisesvariate() no more hangs for large kappas. 13 years ago
Serhiy Storchaka 65d56390bb Issue #17141: random.vonmisesvariate() no more hangs for large kappas. 13 years ago
Mark Dickinson be5f91957f Issue #17149: Fix random.vonmisesvariate to always return results in [0, 2*math.pi]. 13 years ago
Mark Dickinson 9aaeb5e0c8 Issue #17149: Fix random.vonmisesvariate to always return results in [0, 2*math.pi]. 13 years ago
Antoine Pitrou 5e3943317d Issue #15837: add some tests for random.shuffle(). 13 years ago
Mark Dickinson e0afb72402 Closes #14591: Random.jumpahead could produce an invalid MT state on 64-bit machines. 14 years ago
Mark Dickinson 95aeae01e2 In random's test_seedargs: Make sure to include at least one seed object with a negative hash. 14 years ago
Raymond Hettinger 3fcf002994 Update whatsnew. Salt the random number seed. 15 years ago