summaryrefslogtreecommitdiff
path: root/tests/basics/set_add.py
diff options
context:
space:
mode:
authorAndrew Scheller <github@loowis.durge.org>2014-04-07 05:00:03 +0100
committerAndrew Scheller <github@loowis.durge.org>2014-04-07 05:00:03 +0100
commit1ff6011abc47cb3a42ed89c9c682ac8a0af6b092 (patch)
tree24af0b18cf1602f7a9292e39644f0f70d8c647ac /tests/basics/set_add.py
parent2bfd2dc77091bee94723c36216dee652bcc8a054 (diff)
Modify set tests to print sorted sets directly
instead of creating temporary lists and sorting those in-place
Diffstat (limited to 'tests/basics/set_add.py')
-rw-r--r--tests/basics/set_add.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/basics/set_add.py b/tests/basics/set_add.py
index f2a372f30..ac81f4849 100644
--- a/tests/basics/set_add.py
+++ b/tests/basics/set_add.py
@@ -1,5 +1,3 @@
s = {1, 2, 3, 4}
print(s.add(5))
-l = list(s)
-l.sort()
-print(l)
+print(sorted(s))