Page MenuHomePhabricator

qa: fix deprecated log.warn in feature_dbcrash test
ClosedPublic

Authored by Fabien on Nov 27 2019, 15:20.

Details

Summary
This clears up the following deprecation message when running the test:

test/functional/feature_dbcrash.py:270: DeprecationWarning: The 'warn'
method is deprecated, use 'warning' instead
  self.log.warn("Node %d never crashed during utxo flush!", i)

Git grepping indicates that this was the last remaining use of
`log.warn` in the functional tests.

Backport of core PR16491:
https://github.com/bitcoin/bitcoin/pull/16491/files

Test Plan
./test/functional/test_runner.py feature_dbcrash

Diff Detail

Repository
rABC Bitcoin ABC
Branch
PR16491
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 8310
Build 14639: Default Diff Build & Tests
Build 14638: arc lint + arc unit