Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Commit

Permalink
iss #29 fix tests on tornado 5
Browse files Browse the repository at this point in the history
  • Loading branch information
maizy committed Jun 24, 2019
1 parent fedfa2e commit b5697ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ language: python
python:
- 2.7
env:
- TORNADO_VERSION='==3.2.2'
- TORNADO_VERSION='>=3.2'
- TORNADO_VERSION='==4.0.2'
- TORNADO_VERSION='>=4'
- TORNADO_VERSION='>=3.2,<4'
- TORNADO_VERSION='>=4,<5'
- TORNADO_VERSION='>=5,<6'
install:
- pip install pep8
- pip install coverage
Expand Down
1 change: 1 addition & 0 deletions zaglushka_tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def assertResponseBody(self, expected_body, response, msg=''):

def assertResponseHeaders(self, expected_headers, response):
real_headers = {key.lower(): value for key, value in response.headers.iteritems()}
real_headers.pop('connection', None)
expected_headers = {key.lower(): value for key, value in expected_headers.iteritems()}
expected_headers['content-length'] = str(len(response.body))
self.assertEqual(expected_headers, real_headers)
Expand Down

0 comments on commit b5697ec

Please sign in to comment.