[New-bugs-announce] [issue30308] Add code coverage for argument in random.shuffle

Cheryl Sabella report at bugs.python.org
Mon May 8 17:20:00 EDT 2017

New submission from Cheryl Sabella:

Added test cases for `random` argument in random.shuffle for code coverage.

Two interesting results (documented within test cases):
1.  In the docs, `random` is defined as a function returning a float in the range [0, 1), but negative floats could be returned and shuffle worked using slice notation.
2.  A dictionary with sequential numeric keys could be shuffled.

components: Tests
messages: 293253
nosy: csabella
priority: normal
severity: normal
status: open
title: Add code coverage for argument in random.shuffle
type: enhancement
versions: Python 3.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list