Skip to content

Commit 0b6cc65

Browse files
The-Compileryoutux
authored andcommitted
Fix Python 3.8 support
1 parent 72a8764 commit 0b6cc65

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ python:
55
- "3.5"
66
- "3.6"
77
- "3.7"
8+
- "3.8-dev"
89

910
install: pip install tox tox-travis
1011

pytest_bdd/steps.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ def set_code(func, code):
220220
]
221221
if six.PY3:
222222
argnames.insert(1, "co_kwonlyargcount")
223+
if sys.version_info.minor >= 8:
224+
argnames.insert(1, "co_posonlyargcount")
223225

224226
for arg in get_args(func):
225227
if arg in add_args:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ distshare = {homedir}/.tox/distshare
33
envlist = py27-pytestlatest-linters,
44
py27-pytest{36,37,38,39,310,4,41,42,43,44,45,46},
55
py37-pytest{36,37,38,39,310,4,41,42,43,44,45,46,5,latest},
6-
py{35,36}-pytestlatest,
6+
py{35,36,38}-pytestlatest,
77
py27-pytestlatest-xdist
88
skip_missing_interpreters = true
99

0 commit comments

Comments
 (0)