From 5eb9fcbc8d1691711c2d44ce007a1697e88a2bac Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Wed, 15 Nov 2017 21:07:38 -0500 Subject: [PATCH 1/3] FIX: compatibility with python3.7 This expression is broken by: bpo-32012: Disallow trailing comma after genexpr without parenthesis. python/cpython#4382 python/cpython@9165f77d5f93a2c12aa0e90853e3ae7212800d3c --- toolz/functoolz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__ From 8aba7157760dbd0e1ecc5c95d65e5a094c2eb396 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Wed, 15 Nov 2017 21:14:26 -0500 Subject: [PATCH 2/3] CI: add 3.7-dev to test matrix --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) 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 From 255c9082645451ba6b2276dd7024900cbbbad676 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Wed, 15 Nov 2017 21:53:40 -0500 Subject: [PATCH 3/3] TST: do not worry abount having good introspection on breakpoint --- toolz/tests/test_inspect_args.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -