]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
travis.yml: Reproduce #1780 in CI
authorBen Darnell <ben@bendarnell.com>
Tue, 26 Jul 2016 03:45:45 +0000 (23:45 -0400)
committerBen Darnell <ben@bendarnell.com>
Tue, 26 Jul 2016 03:53:36 +0000 (23:53 -0400)
.travis.yml

index 16f61830d490c5a98ffbf810584923973ea4c206..7d6b79a5910ea94087fbd73cb3111dd1e78b25b9 100644 (file)
@@ -30,9 +30,13 @@ install:
     - curl-config --version; pip freeze
 
 script:
-    # Get out of the source directory before running tests to avoid PYTHONPATH
-    # confusion.  This is necessary to ensure that the speedups module can
-    # be found in the installation directory.
+    # Run the tests once from the source directory to detect issues
+    # involving relative __file__ paths; see
+    # https://github.com/tornadoweb/tornado/issues/1780
+    - unset TORNADO_EXTENSION && python -m tornado.test
+    # For all other test variants, get out of the source directory before
+    # running tests to ensure that we get the installed speedups module
+    # instead of the source directory which doesn't have it.
     - cd maint
     # Copy the coveragerc down so coverage.py can find it.
     - cp ../.coveragerc .