Skip to content

Commit 54414a3

Browse files
committed
Fix failing unit test
1 parent e86b733 commit 54414a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_result.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
import pytest
44
from expression import effect
5-
from expression.core import Error, Failure, Ok, Result, Success, Try, match, result
5+
from expression.core import (Error, Failure, Ok, Result, Success, Try, match,
6+
result)
67
from expression.extra.result import pipeline, sequence
78
from hypothesis import given
89
from hypothesis import strategies as st
@@ -49,7 +50,7 @@ def test_result_match_error():
4950

5051
def test_try_match_error():
5152
error = Exception("err")
52-
xs: Try[int] = Error(error)
53+
xs: Try[int] = Failure(error)
5354

5455
with match(xs) as case:
5556
for err in case(Failure[int]):

0 commit comments

Comments
 (0)