Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c0aa2457
Commit
c0aa2457
authored
Nov 26, 2013
by
Zachary Ware
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19588: Fixed tests in test_random that were silently skipped most
of the time. Patch by Julian Gindi.
parent
dafda9b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
Lib/test/test_random.py
Lib/test/test_random.py
+6
-6
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_random.py
View file @
c0aa2457
...
...
@@ -251,10 +251,10 @@ class SystemRandom_TestBasicOps(TestBasicOps):
def
test_bigrand_ranges
(
self
):
for
i
in
[
40
,
80
,
160
,
200
,
211
,
250
,
375
,
512
,
550
]:
start
=
self
.
gen
.
randrange
(
2
**
i
)
stop
=
self
.
gen
.
randrange
(
2
**
(
i
-
2
)
)
start
=
self
.
gen
.
randrange
(
2
**
(
i
-
2
)
)
stop
=
self
.
gen
.
randrange
(
2
**
i
)
if
stop
<=
start
:
return
continue
self
.
assertTrue
(
start
<=
self
.
gen
.
randrange
(
start
,
stop
)
<
stop
)
def
test_rangelimits
(
self
):
...
...
@@ -403,10 +403,10 @@ class MersenneTwister_TestBasicOps(TestBasicOps):
def
test_bigrand_ranges
(
self
):
for
i
in
[
40
,
80
,
160
,
200
,
211
,
250
,
375
,
512
,
550
]:
start
=
self
.
gen
.
randrange
(
2
**
i
)
stop
=
self
.
gen
.
randrange
(
2
**
(
i
-
2
)
)
start
=
self
.
gen
.
randrange
(
2
**
(
i
-
2
)
)
stop
=
self
.
gen
.
randrange
(
2
**
i
)
if
stop
<=
start
:
return
continue
self
.
assertTrue
(
start
<=
self
.
gen
.
randrange
(
start
,
stop
)
<
stop
)
def
test_rangelimits
(
self
):
...
...
Misc/ACKS
View file @
c0aa2457
...
...
@@ -362,6 +362,7 @@ Dinu Gherman
Jonathan Giddy
Johannes Gijsbers
Michael Gilfix
Julian Gindi
Wim Glenn
Christoph Gohlke
Tim Golden
...
...
Misc/NEWS
View file @
c0aa2457
...
...
@@ -50,6 +50,9 @@ Library
Tests
-----
-
Issue
#
19588
:
Fixed
tests
in
test_random
that
were
silently
skipped
most
of
the
time
.
Patch
by
Julian
Gindi
.
-
Issue
#
17883
:
Tweak
test_tcl
testLoadWithUNC
to
skip
the
test
in
the
event
of
a
permission
error
on
Windows
and
to
properly
report
other
skip
conditions
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment