Skip to content

Commit 9b8bc0f

Browse files
committed
Fix travis file due to flask dependency change
1 parent 53e284d commit 9b8bc0f

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

.travis.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,17 @@ python:
77
- '3.4'
88
- '3.5'
99
- '3.6'
10+
- '3.7'
11+
- '3.8'
1012
- pypy
11-
12-
# from https://github.com/travis-ci/travis-ci/issues/9815
13-
# https://github.com/travis-ci/travis-ci/issues/9069#issuecomment-425720905
14-
# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
15-
matrix:
16-
include:
17-
- python: 3.7
18-
dist: xenial
19-
sudo: true
2013

2114
env:
22-
- FLASK=0.10.1
23-
- FLASK=0.10
24-
15+
- FLASK=0.10.1 WERKZEUG_DEP="werkzeug==0.16.1"
16+
- FLASK=0.10 WERKZEUG_DEP="werkzeug==0.16.1"
17+
- FLASK=1.0 WERKZEUG_DEP=""
18+
- FLASK=1.1 WERKZEUG_DEP=""
2519
install:
26-
- pip install -U setuptools pep8 six coverage docutils pygments flask==$FLASK
20+
- pip install -U setuptools pep8 six coverage docutils pygments flask==$FLASK $WERKZEUG_DEP
2721

2822
script:
2923
- coverage erase

tests/extension/test_app_extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class AppExtensionString(FlaskCorsTestCase):
204204
def setUp(self):
205205
self.app = Flask(__name__)
206206
CORS(self.app, resources=r'/api/*',
207-
headers='Content-Type',
207+
allow_headers='Content-Type',
208208
expose_headers='X-Total-Count',
209209
origins='http://bar.com')
210210

0 commit comments

Comments
 (0)