Skip to content

Commit 4e58a12

Browse files
committed
e.error unwraps
1 parent ea0a382 commit 4e58a12

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_sync.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ def test_Outcome():
2424
e = Error(exc)
2525
error = e.error
2626
assert error is exc
27+
e = Error(exc)
2728
assert repr(e) == f"Error({exc!r})"
29+
e = Error(exc)
2830
with pytest.raises(RuntimeError):
2931
e.unwrap()
3032
with pytest.raises(AlreadyUsedError):

0 commit comments

Comments
 (0)