MCPcopy Index your code
hub / github.com/python/cpython / prepare_data

Method prepare_data

Lib/test/test_statistics.py:1046–1051  ·  view source on GitHub ↗

Return int data for various tests.

(self)

Source from the content-addressed store, hash-verified

1044 self.assertRaises(statistics.StatisticsError, self.func, empty)
1045
1046 def prepare_data(self):
1047 """Return int data for various tests."""
1048 data = list(range(10))
1049 while data == sorted(data):
1050 random.shuffle(data)
1051 return data
1052
1053 def test_no_inplace_modifications(self):
1054 # Test that the function does not modify its input data.

Calls 2

listClass · 0.85
shuffleMethod · 0.80

Tested by

no test coverage detected