8000 Don't specify the reactor for Py3k Travis tests · wulczer/txpostgres@ce69987 · GitHub
[go: up one dir, main page]

Skip to content

Commit ce69987

Browse files
committed
Don't specify the reactor for Py3k Travis tests
The way Twisted gets installed there makes it fail when explicitly specifying the reactor, so just run with the default.
1 parent a32020d commit ce69987

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ matrix:
3737
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=select
3838
- python: 3.5
3939
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=poll
40-
# the Travis builder complains about running trial --reactor=default
41-
# on Py3k, so disable it and use epoll explicitly
4240
- python: 3.5
43-
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=default
41+
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=epoll
4442
- python: 3.5
4543
env: TXPOSTGRES_TEST_HOST=127.0.0.1 TXPOSTGRES_TEST_USER=postgres REACTOR=gtk2
4644

@@ -68,7 +66,8 @@ install:
6866
before_script:
6967
- psql -U postgres -c 'create database twisted_test'
7068

71-
script: trial --reactor=$REACTOR test
69+
# in Travis, the Python 3.5 Twisted install doesn't work with --reactor=XXX, so just run plain `trial test`
70+
script: test "$TRAVIS_PYTHON_VERSION" != "3.5" && trial --reactor=$REACTOR test || trial test
7271

7372
notifications:
7473
email:

0 commit comments

Comments
 (0)
0