diff --git a/.arclint b/.arclint --- a/.arclint +++ b/.arclint @@ -26,7 +26,7 @@ "include": "(\\.py$)", "flags": [ "--select=E,W,F401,F402,F403,F404,F405,F406,F407,F601,F602,F621,F622,F631,F701,F702,F703,F704,F705,F706,F707,F811,F812,F821,F822,F823,F831,F841", - "--ignore=E501,E704,E712,E713,E722,E731,W503,W504" + "--ignore=E501,E704,E713,E722,E731,W503,W504" ] }, "lint-format-strings": { diff --git a/test/functional/feature_bip68_sequence.py b/test/functional/feature_bip68_sequence.py --- a/test/functional/feature_bip68_sequence.py +++ b/test/functional/feature_bip68_sequence.py @@ -486,7 +486,7 @@ "hex"] try: self.nodes[1].sendrawtransaction(tx_signed) - assert before_activation == False + assert not before_activation except: assert before_activation diff --git a/test/functional/p2p_leak.py b/test/functional/p2p_leak.py --- a/test/functional/p2p_leak.py +++ b/test/functional/p2p_leak.py @@ -162,9 +162,9 @@ wait_until(lambda: len(self.nodes[0].getpeerinfo()) == 0) # Make sure no unexpected messages came in - assert no_version_bannode.unexpected_msg == False - assert no_version_idlenode.unexpected_msg == False - assert no_verack_idlenode.unexpected_msg == False + assert not no_version_bannode.unexpected_msg + assert not no_version_idlenode.unexpected_msg + assert not no_verack_idlenode.unexpected_msg if __name__ == '__main__': diff --git a/test/functional/wallet_disable.py b/test/functional/wallet_disable.py --- a/test/functional/wallet_disable.py +++ b/test/functional/wallet_disable.py @@ -23,9 +23,9 @@ assert_raises_rpc_error(-32601, 'Method not found', self.nodes[0].getwalletinfo) x = self.nodes[0].validateaddress('3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy') - assert x['isvalid'] == False + assert x['isvalid'] is False x = self.nodes[0].validateaddress('mneYUmWYsuk7kySiURxCi3AGxrAqZxLgPZ') - assert x['isvalid'] == True + assert x['isvalid'] is True # Checking mining to an address without a wallet. Generating to a valid address should succeed # but generating to an invalid address will fail. diff --git a/test/functional/wallet_dump.py b/test/functional/wallet_dump.py --- a/test/functional/wallet_dump.py +++ b/test/functional/wallet_dump.py @@ -142,14 +142,14 @@ # Make sure the address is not IsMine before import result = self.nodes[0].getaddressinfo(multisig_addr) - assert result['ismine'] == False + assert result['ismine'] is False self.nodes[0].importwallet(os.path.abspath( tmpdir + "/node0/wallet.unencrypted.dump")) # Now check IsMine is true result = self.nodes[0].getaddressinfo(multisig_addr) - assert result['ismine'] == True + assert result['ismine'] is True if __name__ == '__main__':