Skip to content

Commit

Permalink
Fix errors when regex module is available (thx @singron)
Browse files Browse the repository at this point in the history
Close #20

Co-authored-by: singron <eculperic@gmail.com>
  • Loading branch information
Toilal and singron committed May 1, 2020
1 parent 6adb3ab commit 65e9ddf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .travis.yml
Expand Up @@ -13,9 +13,14 @@ matrix:
- python: 3.8-dev
dist: xenial
sudo: true
env:
matrix:
- PYTHON_REGEX=false
- PYTHON_REGEX=true
install:
- pip install pip --upgrade
- pip install -e .[dev,test]
- if [[ "$PYTHON_REGEX" == "true" ]]; then pip install regex; fi;
- pip install coveralls
script:
- coverage run --source=rebulk setup.py test
Expand Down
2 changes: 1 addition & 1 deletion rebulk/loose.py
Expand Up @@ -56,7 +56,7 @@ def call(function, *args, **kwargs):
:rtype: object
"""
func = constructor_args if isclass(function) else function_args
call_args, call_kwargs = func(function, *args, **kwargs)
call_args, call_kwargs = func(function, *args, ignore_unused=True, **kwargs) # @see #20
return function(*call_args, **call_kwargs)


Expand Down

0 comments on commit 65e9ddf

Please sign in to comment.