Skip to content

Commit

Permalink
Merge pull request #264 from cdent/cd/test-modern-37
Browse files Browse the repository at this point in the history
Update testing to use python 3.7
  • Loading branch information
cdent committed Dec 6, 2018
2 parents 419d502 + 9dc3eaa commit d17d75c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 14 deletions.
25 changes: 15 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
sudo: false
dist: xenial
language: python
services:
# For Gnocchi
Expand Down Expand Up @@ -27,26 +28,30 @@ matrix:
- env: TOXENV=py27-pytest
- env: TOXENV=gnocchi
- env: TOXENV=placement
- python: 3.4
env: TOXENV=py34
- python: pypy
env: TOXENV=pypy
dist: trusty
- python: pypy3
env: TOXENV=pypy3
dist: trusty
- python: 3.5
env: TOXENV=py35
- python: 3.5
env: TOXENV=py35-pytest
- python: 3.6
env: TOXENV=py36-failskip
- python: 3.6
env: TOXENV=py36-limit
- python: 3.6
env: TOXENV=py36-prefix
- python: 3.6
env: TOXENV=py36
- python: 3.7
env: TOXENV=py37
- python: 3.5
env: TOXENV=py35-pytest
- python: 3.6
env: TOXENV=py36-pytest
- python: 3.7
env: TOXENV=py37-pytest
- python: 3.7
env: TOXENV=py37-failskip
- python: 3.7
env: TOXENV=py37-limit
- python: 3.7
env: TOXENV=py37-prefix

notifications:
irc: "chat.freenode.net#gabbi"
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ looks like this::
See the docs_ for more details on the many features and formats for
setting request headers and bodies and evaluating responses.

Gabbi is tested with Python 2.7, 3.4, 3.5, 3.6 and pypy.
Gabbi is tested with Python 2.7, 3.5, 3.6, 3.7 and pypy.

Tests can be run using `unittest`_ style test runners, `pytest`_
or from the command line with a `gabbi-run`_ script.
Expand Down
6 changes: 5 additions & 1 deletion gabbi/tests/test_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"""Test History Replacer.
"""

import sys
import unittest

from gabbi import case
Expand Down Expand Up @@ -120,7 +121,10 @@ def test_cookie_replace_prior_regex(self):

cookie = self.test('test_request').replace_template(
self.test.test_data, escape_regex=True)
self.assertEqual(r'/test\=cookie\?/', cookie)
if sys.version_info[:2] >= (3, 7):
self.assertEqual('/test=cookie\?/', cookie)
else:
self.assertEqual('/test\=cookie\?/', cookie)

def test_cookie_replace_history(self):
self.test.test_data = '$HISTORY["mytest"].$COOKIE'
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ classifier =
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Topic :: Internet :: WWW/HTTP :: WSGI
Topic :: Software Development :: Testing

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
minversion = 1.6
skipsdist = True
envlist = py27,py34,py35,py36,pypy,pep8,limit,failskip,docs,py36-prefix,py36-limit,py36-failskip,py27-pytest,py35-pytest,py36-pytest
envlist = py27,py35,py36,py37,pypy,pep8,limit,failskip,docs,py37-prefix,py37-limit,py37-failskip,py27-pytest,py35-pytest,py36-pytest,py37-pytest

[testenv]
deps = -r{toxinidir}/requirements.txt
Expand Down

0 comments on commit d17d75c

Please sign in to comment.