Seems easier and clearer to just fixup the test?
0diff --git a/test/functional/mempool_accept.py b/test/functional/mempool_accept.py
1index 02ec18140c..be9cea95c1 100755
2--- a/test/functional/mempool_accept.py
3+++ b/test/functional/mempool_accept.py
4@@ -140,7 +140,14 @@ class MempoolAcceptanceTest(BitcoinTestFramework):
5 tx = tx_from_hex(raw_tx_0)
6 tx.vout[0].nValue -= int(4 * fee * COIN) # Set more fee
7 self.check_mempool_result(
8- result_expected=[{'txid': tx.rehash(), 'allowed': False, 'reject-reason': 'txn-mempool-conflict'}],
9+ result_expected=[{
10+ 'txid': tx.rehash(),
11+ 'allowed': True,
12+ 'vsize': 104,
13+ 'fees': {
14+ 'base': Decimal('0.00004200')
15+ },
16+ }],
17 rawtxs=[tx.serialize().hex()],
18 maxfeerate=0,
19 )
20diff --git a/test/functional/p2p_permissions.py b/test/functional/p2p_permissions.py
21index 453a0920cc..52caceee24 100755
22--- a/test/functional/p2p_permissions.py
23+++ b/test/functional/p2p_permissions.py
24@@ -112,8 +112,7 @@ class P2PPermissionsTests(BitcoinTestFramework):
25 }], outputs=[{
26 ADDRESS_BCRT1_P2WSH_OP_TRUE: 5,
27 }],
28- replaceable=False),
29- )
30+ ))
31 tx.wit.vtxinwit = [CTxInWitness()]
32 tx.wit.vtxinwit[0].scriptWitness.stack = [CScript([OP_TRUE])]
33 txid = tx.rehash()
34@@ -130,13 +129,13 @@ class P2PPermissionsTests(BitcoinTestFramework):
35 self.log.debug("Check that node[1] will not send an invalid tx to node[0]")
36 tx.vout[0].nValue += 1
37 txid = tx.rehash()
38- # Send the transaction twice. The first time, it'll be rejected by ATMP because it conflicts
39- # with a mempool transaction. The second time, it'll be in the m_recent_rejects filter.
40+ # Send the transaction twice. The first time, it'll be rejected by the
41+ # mempool. The second time, it'll be in the m_recent_rejects filter.
42 p2p_rebroadcast_wallet.send_txs_and_test(
43 [tx],
44 self.nodes[1],
45 success=False,
46- reject_reason='{} from peer=0 was not accepted: txn-mempool-conflict'.format(txid)
47+ reject_reason=f"{txid} from peer=0 was not accepted: insufficient fee",
48 )
49
50 p2p_rebroadcast_wallet.send_txs_and_test(