diff --git a/Dockerfile-2.7 b/Dockerfile-2.7 index f511194..3e643f0 100644 --- a/Dockerfile-2.7 +++ b/Dockerfile-2.7 @@ -2,6 +2,6 @@ From python:2.7-onbuild Maintainer J. Fernando Sánchez @balkian -RUN pip install -e "/usr/src/app/[server]" +RUN pip install ".[server]" ENTRYPOINT ["bitter"] diff --git a/Makefile b/Makefile index d61b5a4..7b934c6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -PYVERSIONS=3.4 2.7 +PYVERSIONS=3.5 PYMAIN=$(firstword $(PYVERSIONS)) NAME=bitter REPO=balkian diff --git a/tests/test_utils.py b/tests/test_utils.py index 417f1d4..ead73a9 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -48,13 +48,13 @@ class TestUtils(TestCase): time.sleep(0.5) return i tic = time.time() - resp = utils.parallel(echo, [1,2,3]) + resp = utils.parallel(echo, [1, 2, 3]) assert isinstance(resp, types.GeneratorType) - assert list(resp) == [1,2,3] + assert sorted(list(resp)) == [1, 2, 3] toc = time.time() assert (tic-toc) < 600 resp2 = utils.parallel(echo, [1,2,3,4], chunksize=2) - assert list(resp2) == [1,2, 3,4] + assert sorted(list(resp2)) == [1, 2, 3, 4] class TestUtilsEnv(TestUtils):