summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-08-17 15:42:51 +1000
committerJeff Epler <jepler@gmail.com>2020-03-31 17:27:10 -0500
commit8b5fd95897b967e5077527f50657ac4ded39a9aa (patch)
treeda4a7c1343577a1bcf3c0865b9cfe0191cf0207d
parentf47b964c5ff838153ebaff2077405b0f4f881565 (diff)
tests/basics/set_pop.py: Sort set before printing for consistent output.
-rw-r--r--tests/basics/set_pop.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basics/set_pop.py b/tests/basics/set_pop.py
index 5e1196c9f..e951ca593 100644
--- a/tests/basics/set_pop.py
+++ b/tests/basics/set_pop.py
@@ -15,4 +15,4 @@ while s:
print(s.pop()) # last pop() should trigger the optimisation
for i in range(N):
s.add(i) # check that we can add the numbers back to the set
-print(list(s))
+print(sorted(s))