definitely not intended. how about this:
diff --git a/test/functional/feature_taproot.py b/test/functional/feature_taproot.py
index 68c2c2e501..33dbc8f334 100755
--- a/test/functional/feature_taproot.py
+++ b/test/functional/feature_taproot.py
@@ -1238,12 +1238,12 @@ def sample_spenders():
pubs = [compute_xonly_pubkey(sec)[0] for sec in secs]
# Create a list of scripts which will be built into a taptree
scripts = [
# leaf label, followed by CScript
- ("encodeable_pushdata1", CScript([OP_DROP, OP_PUSHDATA1, b'aa' * 75])),
- ("nonstd_encodeable_pushdata1", CScript([OP_PUSHDATA1, b'aa'])),
+ ("encodeable_pushdata1", CScript([OP_DROP, b'\xaa\xaa'])),
+ ("nonstd_encodeable_pushdata1", CScript.fromhex(f"{OP_PUSHDATA1:x}{2:02x}aaaa")),
("dummyleaf", CScript([])),
]
# Build TaprootInfo using scripts and appropriate pubkey for output creation
tap = taproot_construct(pubs[0], scripts)