Fix Python 3.8 support

This commit is contained in:
Florian Bruhin 2019-08-18 00:09:36 +02:00 committed by Alessio Bogon
parent 72a8764556
commit 0b6cc6518c
3 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,7 @@ python:
- "3.5"
- "3.6"
- "3.7"
- "3.8-dev"
install: pip install tox tox-travis

View File

@ -220,6 +220,8 @@ def recreate_function(func, module=None, name=None, add_args=[], firstlineno=Non
]
if six.PY3:
argnames.insert(1, "co_kwonlyargcount")
if sys.version_info.minor >= 8:
argnames.insert(1, "co_posonlyargcount")
for arg in get_args(func):
if arg in add_args:

View File

@ -3,7 +3,7 @@ distshare = {homedir}/.tox/distshare
envlist = py27-pytestlatest-linters,
py27-pytest{36,37,38,39,310,4,41,42,43,44,45,46},
py37-pytest{36,37,38,39,310,4,41,42,43,44,45,46,5,latest},
py{35,36}-pytestlatest,
py{35,36,38}-pytestlatest,
py27-pytestlatest-xdist
skip_missing_interpreters = true