From 9f043da5c348602df23f9d80d12dd282fe5981fd Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 6 Apr 2014 23:46:18 +0300 Subject: [PATCH 1/2] pip-micropython: Require command verb, but restrict to "install" only. So, pip-micropython can/should be run as normal pip: pip-micropython install micropython-unittest --- tools/pip-micropython | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/pip-micropython b/tools/pip-micropython index e27e85942..fab880983 100755 --- a/tools/pip-micropython +++ b/tools/pip-micropython @@ -6,6 +6,12 @@ # ports (if PIP_MICROPY_DEST environment var is set). # +if [ "$1" != "install" ]; then + echo "Only install command is supported currently" + exit 1 +fi +shift + if [ -n "$PIP_MICROPY_DEST" ]; then dest="$PIP_MICROPY_DEST" echo "Destination snapshot directory: $dest" From bd6f3d31d2a78bbcfeabcf9f358797020de9b93e Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 7 Apr 2014 02:52:45 +0300 Subject: [PATCH 2/2] tests: Fix few tests which depend on order of elements in set. --- tests/basics/set_union.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/basics/set_union.py b/tests/basics/set_union.py index 2adcc972c..572d12f66 100644 --- a/tests/basics/set_union.py +++ b/tests/basics/set_union.py @@ -1 +1 @@ -print({1}.union({2})) +print(sorted({1}.union({2})))