[issue24533] Increased Test Coverage for Lib/random.py

2019-08-23 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

The test code now includes this:

def test_shuffle_random_argument(self):
# Test random argument to shuffle.
shuffle = self.gen.shuffle
mock_random = unittest.mock.Mock(return_value=0.5)
seq = bytearray(b'abcdefghijk')
shuffle(seq, mock_random)
mock_random.assert_called_with()

Thank you for the suggestion.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24533] Increased Test Coverage for Lib/random.py

2015-07-01 Thread Charles Nodell

Charles Nodell added the comment:

Sounds fine! I look forward to seeing how to do this properly!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24533] Increased Test Coverage for Lib/random.py

2015-06-29 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I don't mind adding a test but would like it to written somewhat differently.  
I'll work something up when I get a chance.  Marking this as a low priority 
because the code is already working fine and this is just a nice addition to 
improve coverage.

--
assignee:  -> rhettinger
priority: normal -> low

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24533] Increased Test Coverage for Lib/random.py

2015-06-29 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +mark.dickinson, rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24533] Increased Test Coverage for Lib/random.py

2015-06-29 Thread Charles Nodell

New submission from Charles Nodell:

This patch just extends test coverage on the random library by a few lines.

--
components: Tests
files: mywork.patch
keywords: patch
messages: 245956
nosy: Charles Nodell
priority: normal
severity: normal
status: open
title: Increased Test Coverage for Lib/random.py
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file39835/mywork.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com