From dd9b9ad0c56970a162d5d5db4f69ebf3b0a7548f Mon Sep 17 00:00:00 2001 From: Erik Welch Date: Tue, 9 Jul 2019 10:22:57 -0500 Subject: [PATCH] Revert 899a932, which worked around a bug in pypy3<2.5 This issue has been fixed for years. Thanks for the reminder @Digenis. --- toolz/tests/test_functoolz.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/toolz/tests/test_functoolz.py b/toolz/tests/test_functoolz.py index 753926dc..63862447 100644 --- a/toolz/tests/test_functoolz.py +++ b/toolz/tests/test_functoolz.py @@ -1,6 +1,4 @@ import inspect -import platform - from toolz.functoolz import (thread_first, thread_last, memoize, curry, compose, compose_left, pipe, complement, do, juxt, flip, excepts, apply) @@ -230,12 +228,10 @@ def g(a=1, b=10, c=0): def h(x, func=int): return func(x) - if platform.python_implementation() != 'PyPy'\ - or platform.python_version_tuple()[0] != '3': # Bug on PyPy3<2.5 - # __init__ must not pick func as positional arg - assert curry(h)(0.0) == 0 - assert curry(h)(func=str)(0.0) == '0.0' - assert curry(h, func=str)(0.0) == '0.0' + # __init__ must not pick func as positional arg + assert curry(h)(0.0) == 0 + assert curry(h)(func=str)(0.0) == '0.0' + assert curry(h, func=str)(0.0) == '0.0' def test_curry_passes_errors():