]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
util/scanner: get rid of FutureWarning message
authorKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Sun, 4 Aug 2024 22:06:33 +0000 (00:06 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Sun, 4 Aug 2024 23:05:11 +0000 (01:05 +0200)
commitb5d14a9d2d8632feac6d81121fd0a6d6d2214185
treec2c82ce05721307368da38d6af353c59cbc9c366
parentedbcc1d70d85df181917798837836c3422286cf1
util/scanner: get rid of FutureWarning message

Get rid of the warning:

    teuthology/util/test/test_scanner.py::TestValgrindScanner::test_scan_all_files
      /Users/kyr/kshtsk/teuthology/teuthology/util/scanner.py:133: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
        if not xml_tree:

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
teuthology/util/scanner.py