diff --git a/.travis.yml b/.travis.yml index c70b24b8..c6e2098f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,11 +7,16 @@ python: - "3.4" - "3.5" - "3.6" + - "3.7-dev" - "pypy" env: - PEP8_IGNORE="E731,W503,E402" +matrix: + allow_failures: + - python: "3.7-dev" + # command to install dependencies install: - pip install coverage pep8 pytest diff --git a/toolz/functoolz.py b/toolz/functoolz.py index 2bd80a4d..408d73f3 100644 --- a/toolz/functoolz.py +++ b/toolz/functoolz.py @@ -498,7 +498,7 @@ def composed_doc(*fs): def __name__(self): try: return '_of_'.join( - f.__name__ for f in reversed((self.first,) + self.funcs), + f.__name__ for f in reversed((self.first,) + self.funcs) ) except AttributeError: return type(self).__name__ diff --git a/toolz/tests/test_inspect_args.py b/toolz/tests/test_inspect_args.py index 3ae3693a..ef03331e 100644 --- a/toolz/tests/test_inspect_args.py +++ b/toolz/tests/test_inspect_args.py @@ -402,6 +402,7 @@ def add_blacklist(mod, attr): blacklist.add(getattr(mod, attr)) add_blacklist(builtins, 'basestring') + add_blacklist(builtins, 'breakpoint') add_blacklist(builtins, 'NoneType') add_blacklist(builtins, '__metaclass__') add_blacklist(builtins, 'sequenceiterator') @@ -497,4 +498,3 @@ def __wrapped__(self): assert num_required_args(Wrapped) == (False if PY33 else None) _sigs.signatures[Wrapped] = (_sigs.expand_sig((0, lambda func: None)),) assert num_required_args(Wrapped) == 1 -