This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Charles Nodell, mark.dickinson, rhettinger
Date 2019-08-23.07:33:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1566545629.68.0.92412400487.issue24533@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-08-23 07:33:49rhettingersetrecipients: + rhettinger, mark.dickinson, Charles Nodell
2019-08-23 07:33:49rhettingersetmessageid: <1566545629.68.0.92412400487.issue24533@roundup.psfhosted.org>
2019-08-23 07:33:49rhettingerlinkissue24533 messages
2019-08-23 07:33:49rhettingercreate