Skip to content

Commit b0c9b08

Browse files
committed
lint + docstring
1 parent f97d0aa commit b0c9b08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

effect/test_fold.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ def test_fold_effect_errors():
6363
assert excinfo.value.wrapped_exception[0] is ZeroDivisionError
6464
assert str(excinfo.value.wrapped_exception[1]) == 'foo'
6565

66+
6667
def test_fold_effect_str():
68+
"""str()ing a FoldError returns useful traceback/exception info."""
6769
effs = [Effect('a'), Effect(Error(ZeroDivisionError('foo'))), Effect('c')]
68-
6970
dispatcher = SequenceDispatcher([
7071
('a', lambda i: 'Ei'),
7172
])
7273

7374
eff = fold_effect(operator.add, 'Nil', effs)
74-
7575
with dispatcher.consume():
7676
with raises(FoldError) as excinfo:
7777
sync_perform(_base_and(dispatcher), eff)

0 commit comments

Comments
 (0)