93 Commits (f111fd2e65ef7aefd4ebeadbb48e84d609bf3733)

Author SHA1 Message Date
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
Raymond Hettinger ffd2a4215a Issue 9816: Random.jumpahead(n) didn't work well for small values of n. 16 years ago
Raymond Hettinger 7f7561ebfc Remove invalid test (it was supposed to fail on 64-bit machines.). 16 years ago
Raymond Hettinger dc4872eefe Fix corner case for Random.choice() and add tests. 16 years ago
Raymond Hettinger 0515661314 Issues #7889, #9025 and #9379: Improvements to the random module. 16 years ago
Raymond Hettinger f763a728ad Document which part of the random module module are guaranteed. 16 years ago
Ezio Melotti 3efafd7749 Merged revisions 77942,79023 via svnmerge from 16 years ago
Ezio Melotti f613f352d0 Merged revisions 78758 via svnmerge from 16 years ago
Georg Brandl 1b37e8728c Merged revisions 78093 via svnmerge from 16 years ago
Benjamin Peterson 90f5ba538b convert shebang lines: python -> python3 16 years ago
Florent Xicluna 6de9e938a5 Issue #7849: Now the utility ``check_warnings`` verifies if the warnings are 16 years ago
Georg Brandl a4f46e1292 Remove unused imports in test modules. 16 years ago
Ezio Melotti dde5b94875 #7092: Silence more py3k warnings. Patch by Florent Xicluna. 16 years ago
Ezio Melotti aa98058cc4 use assert[Not]In where appropriate 16 years ago
Benjamin Peterson 577473fe68 use assert[Not]In where appropriate 16 years ago
Senthil Kumaran ce8e33a095 Reverting the Revision: 77368. I committed Flox's big patch for tests by 16 years ago
Senthil Kumaran 3ddc435af6 Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox 16 years ago
Antoine Pitrou b844ef7950 Silence py3k warning claiming to affect the random module 16 years ago