]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Disable coverage collection on the 'nightly' python version.
authorBen Darnell <ben@bendarnell.com>
Mon, 3 Aug 2015 02:40:16 +0000 (22:40 -0400)
committerBen Darnell <ben@bendarnell.com>
Mon, 3 Aug 2015 02:43:57 +0000 (22:43 -0400)
.travis.yml

index e1814a71451e363c1bccfc21ca236b97ae80de3b..0af81fe05030fbe595cacbdd049d8ea430f9e0f0 100644 (file)
@@ -48,7 +48,9 @@ script:
     # We use "python -m coverage" instead of the "bin/coverage" script
     # so we can pass additional arguments to python.  However, this doesn't
     # work on 2.6, so skip coverage on that version.
-    - if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then export TARGET="-m coverage run $TARGET"; fi
+    # coverage needs a function that was removed in python 3.6 so we can't
+    # run it with nightly cpython.
+    - if [[ $TRAVIS_PYTHON_VERSION != 2.6 && $TRAVIS_PYTHON_VERSION != nightly ]]; then export TARGET="-m coverage run $TARGET"; fi
     - python $TARGET
     - python $TARGET --ioloop=tornado.platform.select.SelectIOLoop
     - python -O $TARGET