diff --git a/tests/unit/wallet/test_transaction.py b/tests/unit/wallet/test_transaction.py index 6580d5aaa3..e12b0e7566 100644 --- a/tests/unit/wallet/test_transaction.py +++ b/tests/unit/wallet/test_transaction.py @@ -617,16 +617,12 @@ async def _test_send_everything_use_cases(self): await self.ledger.release_outputs(utxos) # everything: insufficient funds - try: + with self.assertRaises(lbry.error.InsufficientFundsError): tx = await self.tx( [], # inputs [self.txo(19.93)], # outputs everything=True ) - except lbry.error.InsufficientFundsError: - pass - else: - self.fail("expected InsufficientFunds exception") await self.ledger.release_outputs(utxos)