mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
use the shuffle method of Random instead
This commit is contained in:
parent
d71699d7cd
commit
e120828042
3 changed files with 5 additions and 5 deletions
|
|
@ -78,5 +78,5 @@ def test_target_concurrency_cpu_count_not_implemented():
|
|||
|
||||
def test_shuffled_is_deterministic():
|
||||
seq = [str(i) for i in range(10)]
|
||||
expected = ['3', '7', '8', '2', '4', '6', '5', '1', '0', '9']
|
||||
expected = ['4', '0', '5', '1', '8', '6', '2', '3', '7', '9']
|
||||
assert helpers._shuffled(seq) == expected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue