summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-07 00:42:09 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-07 00:42:09 +0100
commit07e24a629477246fb8f363071880e4a2c9cabeb7 (patch)
treebd1a9e97f8101c0bafea8947da76d2b632313a9b /tests
parentff715429eae825108d26db942284373762f85674 (diff)
downloadmicropython-07e24a629477246fb8f363071880e4a2c9cabeb7.tar.gz
micropython-07e24a629477246fb8f363071880e4a2c9cabeb7.zip
tests: Fix tests with sets to print sorted set.
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/iter-of-iter.py2
-rw-r--r--tests/basics/set1.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/basics/iter-of-iter.py b/tests/basics/iter-of-iter.py
index ba55356294..70282aa97e 100644
--- a/tests/basics/iter-of-iter.py
+++ b/tests/basics/iter-of-iter.py
@@ -5,4 +5,4 @@ print(list(i))
i = iter(iter({1:2, 3:4, 5:6}))
print(sorted(i))
i = iter(iter({1, 2, 3}))
-print(list(i))
+print(sorted(i))
diff --git a/tests/basics/set1.py b/tests/basics/set1.py
index c54fbd8379..399c33eb68 100644
--- a/tests/basics/set1.py
+++ b/tests/basics/set1.py
@@ -4,4 +4,4 @@ s = {1}
print(s)
s = {3, 4, 3, 1}
-print(s)
+print(sorted(s))