Skip to content

Commit 32e78c5

Browse files
test: Fix deprecated test of a find result
DeprecationWarning: Testing an element's truth value will always return True in future versions. Use specific 'len(elem)' or 'elem is not None' test instead. if previous_run_results.find(test_type):
1 parent 10cc251 commit 32e78c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ def load_previously_successful_tests():
11931193
exit(-1)
11941194

11951195
for test_type in ["Test", "Example"]:
1196-
if previous_run_results.find(test_type):
1196+
if previous_run_results.find(test_type) is not None:
11971197
temp = list(
11981198
map(
11991199
lambda x: (x.find("Name").text, x.find("Result").text),

0 commit comments

Comments
 (0)