Skip to content

Commit

Permalink
Fix Python 3.8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Compiler authored and youtux committed Aug 19, 2019
1 parent 72a8764 commit 0b6cc65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -5,6 +5,7 @@ python:
- "3.5"
- "3.6"
- "3.7"
- "3.8-dev"

install: pip install tox tox-travis

Expand Down
2 changes: 2 additions & 0 deletions pytest_bdd/steps.py
Expand Up @@ -220,6 +220,8 @@ def set_code(func, code):
]
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:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -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

Expand Down

0 comments on commit 0b6cc65

Please sign in to comment.