We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 905f09a commit 23e3cacCopy full SHA for 23e3cac
tutorial/tests/test_12_functions_advanced.py
@@ -56,18 +56,7 @@ def test_randomize_list(
56
if len(my_list) > 2:
57
# Check there's at least some variation in results
58
assert len({tuple(r) for r in results}) > 1, (
59
- "Function doesn't appear to randomize"
60
- )
61
-
62
- # Ensure it's not just returning sorted lists
63
- sorted_list = sorted(my_list)
64
- assert not all(r == sorted_list for r in results), (
65
- "Function appears to just sort the list"
66
67
68
- # Ensure it's not just returning the original list
69
- assert not all(r == my_list for r in results), (
70
- "Function appears to return the original list"
+ "Function doesn't appear to randomize. You should not use random.seed()."
71
)
72
73
0 commit comments