[qa] py2: Unfiddle strings into bytes explicitly
This commit is contained in:
parent
0afac87e81
commit
faa41ee204
28 changed files with 205 additions and 213 deletions
qa/rpc-tests
|
@ -61,10 +61,10 @@ class InvalidTxRequestTest(ComparisonTestFramework):
|
|||
height += 1
|
||||
yield test
|
||||
|
||||
# chr(100) is OP_NOTIF
|
||||
# b'\x64' is OP_NOTIF
|
||||
# Transaction will be rejected with code 16 (REJECT_INVALID)
|
||||
tx1 = create_transaction(self.block1.vtx[0], 0, chr(100), 50 * COIN - 12000)
|
||||
yield TestInstance([[tx1, RejectResult(16, 'mandatory-script-verify-flag-failed')]])
|
||||
tx1 = create_transaction(self.block1.vtx[0], 0, b'\x64', 50 * COIN - 12000)
|
||||
yield TestInstance([[tx1, RejectResult(16, b'mandatory-script-verify-flag-failed')]])
|
||||
|
||||
# TODO: test further transactions...
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue