Skip to content

Commit dd9b9ad

Browse files
committed
Revert 899a932, which worked around a bug in pypy3<2.5
This issue has been fixed for years. Thanks for the reminder @Digenis.
1 parent c9d69b9 commit dd9b9ad

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

toolz/tests/test_functoolz.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import inspect
2-
import platform
3-
42
from toolz.functoolz import (thread_first, thread_last, memoize, curry,
53
compose, compose_left, pipe, complement, do, juxt,
64
flip, excepts, apply)
@@ -230,12 +228,10 @@ def g(a=1, b=10, c=0):
230228
def h(x, func=int):
231229
return func(x)
232230

233-
if platform.python_implementation() != 'PyPy'\
234-
or platform.python_version_tuple()[0] != '3': # Bug on PyPy3<2.5
235-
# __init__ must not pick func as positional arg
236-
assert curry(h)(0.0) == 0
237-
assert curry(h)(func=str)(0.0) == '0.0'
238-
assert curry(h, func=str)(0.0) == '0.0'
231+
# __init__ must not pick func as positional arg
232+
assert curry(h)(0.0) == 0
233+
assert curry(h)(func=str)(0.0) == '0.0'
234+
assert curry(h, func=str)(0.0) == '0.0'
239235

240236

241237
def test_curry_passes_errors():

0 commit comments

Comments
 (0)