Skip to content

Commit

Permalink
Merge pull request #352 from eriknw/run_doctests_on_curried
Browse files Browse the repository at this point in the history
Run doctest on curried functions in `toolz`.  Fixes #348.
  • Loading branch information
eriknw committed Nov 3, 2016
2 parents d8c0d50 + 52f8be9 commit 9dec542
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions toolz/tests/test_curried_doctests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import doctest
import toolz


def test_doctests():
toolz.__test__ = {}
for name, func in vars(toolz).items():
if isinstance(func, toolz.curry):
toolz.__test__[name] = func.func
assert doctest.testmod(toolz).failed == 0
del toolz.__test__

0 comments on commit 9dec542

Please sign in to comment.