summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2023-03-08 11:06:54 -0800
committerMatt Clay <matt@mystile.com>2023-03-14 17:47:48 -0700
commitbea9a2acf72f87661660a0d46c8554777aa02978 (patch)
tree6ba7c8f196e4f89838d5ee934b6f676ed5d0d120 /test
parent4a3f5b71678c2f23f31c636472bbc0fd30c3e7e8 (diff)
downloadansible-bea9a2acf72f87661660a0d46c8554777aa02978.tar.gz
[stable-2.14] ansible-test - Remove pointless comparison (#80168)
(cherry picked from commit 31658031ed40f3db002b690b436b793634c2b5e7) Co-authored-by: Matt Clay <matt@mystile.com>
Diffstat (limited to 'test')
-rw-r--r--test/lib/ansible_test/_internal/test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/ansible_test/_internal/test.py b/test/lib/ansible_test/_internal/test.py
index 3fb649c47a..4814ee3e25 100644
--- a/test/lib/ansible_test/_internal/test.py
+++ b/test/lib/ansible_test/_internal/test.py
@@ -47,7 +47,7 @@ def calculate_confidence(path: str, line: int, metadata: Metadata) -> int:
return 0
# changes were made to the same file and line
- if any(r[0] <= line <= r[1] in r for r in ranges):
+ if any(r[0] <= line <= r[1] for r in ranges):
return 100
# changes were made to the same file and the line number is unknown