summaryrefslogtreecommitdiff
path: root/tests/basics/set_copy.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_copy.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_copy.py')
-rw-r--r--tests/basics/set_copy.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/basics/set_copy.py b/tests/basics/set_copy.py
index 2ea308b0d..646fae0f2 100644
--- a/tests/basics/set_copy.py
+++ b/tests/basics/set_copy.py
@@ -3,6 +3,4 @@ t = s.copy()
s.add(5)
t.add(7)
for i in s, t:
- l = list(i)
- l.sort()
- print(l)
+ print(sorted(i))