mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-03 09:43:55 +02:00
Replace "can not" with "cannot" in docs, user messages, and tests
This commit is contained in:
@@ -78,7 +78,7 @@ class MempoolCompatibilityTest(BitcoinTestFramework):
|
||||
|
||||
self.stop_nodes()
|
||||
|
||||
self.log.info("Check migrated txindex can not be read by legacy node")
|
||||
self.log.info("Check migrated txindex cannot be read by legacy node")
|
||||
err_msg = f": You need to rebuild the database using -reindex to change -txindex.{os.linesep}Please restart with -reindex or -reindex-chainstate to recover."
|
||||
shutil.rmtree(legacy_chain_dir)
|
||||
shutil.copytree(migrate_chain_dir, legacy_chain_dir)
|
||||
|
||||
@@ -52,7 +52,7 @@ class DecodeScriptTest(BitcoinTestFramework):
|
||||
rpc_result = self.nodes[0].decodescript('5100')
|
||||
assert_equal('1 0', rpc_result['asm'])
|
||||
|
||||
# null data scriptSig - no such thing because null data scripts can not be spent.
|
||||
# null data scriptSig - no such thing because null data scripts cannot be spent.
|
||||
# thus, no test case for that standard transaction type is here.
|
||||
|
||||
def decodescript_script_pub_key(self):
|
||||
|
||||
@@ -23,7 +23,7 @@ class UptimeTest(BitcoinTestFramework):
|
||||
self._test_uptime()
|
||||
|
||||
def _test_negative_time(self):
|
||||
assert_raises_rpc_error(-8, "Mocktime can not be negative: -1.", self.nodes[0].setmocktime, -1)
|
||||
assert_raises_rpc_error(-8, "Mocktime cannot be negative: -1.", self.nodes[0].setmocktime, -1)
|
||||
|
||||
def _test_uptime(self):
|
||||
wait_time = 10
|
||||
|
||||
@@ -35,14 +35,14 @@ class WalletEncryptionTest(BitcoinTestFramework):
|
||||
assert_raises_rpc_error(-15, "Error: running with an unencrypted wallet, but walletpassphrasechange was called.", self.nodes[0].walletpassphrasechange, 'ff', 'ff')
|
||||
|
||||
# Encrypt the wallet
|
||||
assert_raises_rpc_error(-8, "passphrase can not be empty", self.nodes[0].encryptwallet, '')
|
||||
assert_raises_rpc_error(-8, "passphrase cannot be empty", self.nodes[0].encryptwallet, '')
|
||||
self.nodes[0].encryptwallet(passphrase)
|
||||
|
||||
# Test that the wallet is encrypted
|
||||
assert_raises_rpc_error(-13, "Please enter the wallet passphrase with walletpassphrase first", self.nodes[0].signmessage, address, msg)
|
||||
assert_raises_rpc_error(-15, "Error: running with an encrypted wallet, but encryptwallet was called.", self.nodes[0].encryptwallet, 'ff')
|
||||
assert_raises_rpc_error(-8, "passphrase can not be empty", self.nodes[0].walletpassphrase, '', 1)
|
||||
assert_raises_rpc_error(-8, "passphrase can not be empty", self.nodes[0].walletpassphrasechange, '', 'ff')
|
||||
assert_raises_rpc_error(-8, "passphrase cannot be empty", self.nodes[0].walletpassphrase, '', 1)
|
||||
assert_raises_rpc_error(-8, "passphrase cannot be empty", self.nodes[0].walletpassphrasechange, '', 'ff')
|
||||
|
||||
# Check that walletpassphrase works
|
||||
self.nodes[0].walletpassphrase(passphrase, 2)
|
||||
|
||||
@@ -30,7 +30,7 @@ class WalletLocktimeTest(BitcoinTestFramework):
|
||||
)
|
||||
self.generate(node, 1)
|
||||
|
||||
self.log.info("Check that clock can not change finality of confirmed txs")
|
||||
self.log.info("Check that clock cannot change finality of confirmed txs")
|
||||
amount_before_ad = node.getreceivedbyaddress(address)
|
||||
amount_before_lb = node.getreceivedbylabel(label)
|
||||
list_before_ad = node.listreceivedbyaddress(address_filter=address)
|
||||
|
||||
Reference in New Issue
Block a user