Skip to content

Commit 787aae0

Browse files
committed
bad change, my bad
1 parent a588598 commit 787aae0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chia/_tests/pools/test_pool_puzzles_lifecycle.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def test_pool_lifecycle(self):
245245
# Spend it and hope it fails!
246246
with pytest.raises(
247247
BadSpendBundleError,
248-
match=re.escape(f"condition validation failure {Err.ASSERT_ANNOUNCE_CONSUMED_FAILED.name}"),
248+
match=re.escape(f"condition validation failure {Err.ASSERT_ANNOUNCE_CONSUMED_FAILED!s}"),
249249
):
250250
coin_db.update_coin_store_for_spend_bundle(
251251
SpendBundle([singleton_coinsol], G2Element()), time, DEFAULT_CONSTANTS.MAX_BLOCK_COST_CLVM
@@ -273,7 +273,7 @@ def test_pool_lifecycle(self):
273273
# Spend it and hope it fails!
274274
with pytest.raises(
275275
BadSpendBundleError,
276-
match=re.escape(f"condition validation failure {Err.ASSERT_ANNOUNCE_CONSUMED_FAILED.name}"),
276+
match=re.escape(f"condition validation failure {Err.ASSERT_ANNOUNCE_CONSUMED_FAILED!s}"),
277277
):
278278
coin_db.update_coin_store_for_spend_bundle(
279279
SpendBundle([singleton_coinsol, bad_coinsol], G2Element()), time, DEFAULT_CONSTANTS.MAX_BLOCK_COST_CLVM
@@ -326,7 +326,7 @@ def test_pool_lifecycle(self):
326326
# Spend it and hope it fails!
327327
with pytest.raises(
328328
BadSpendBundleError,
329-
match=re.escape(f"condition validation failure {Err.ASSERT_HEIGHT_RELATIVE_FAILED.name}"),
329+
match=re.escape(f"condition validation failure {Err.ASSERT_HEIGHT_RELATIVE_FAILED!s}"),
330330
):
331331
coin_db.update_coin_store_for_spend_bundle(
332332
SpendBundle([return_coinsol], sig), time, DEFAULT_CONSTANTS.MAX_BLOCK_COST_CLVM

0 commit comments

Comments
 (0)