From 2ba49ba1853ee4ceb83cc59baef674aab64b1958 Mon Sep 17 00:00:00 2001 From: Yaroslav Chvanov Date: Wed, 1 Mar 2023 17:39:43 +0300 Subject: [PATCH] test: fix ambiguous variable names --- test/data-parse-test.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/data-parse-test.py b/test/data-parse-test.py index 79e4b5af..bbc4b5f0 100755 --- a/test/data-parse-test.py +++ b/test/data-parse-test.py @@ -37,14 +37,14 @@ from typing import Collection, TypeVar T = TypeVar("T") -def assertIn(element: T, l: Collection[T]): - if element not in l: - raise AssertionError(f"{element} must be in {l}") +def assertIn(element: T, collection: Collection[T]): + if element not in collection: + raise AssertionError(f"{element} must be in {collection}") -def assertNotIn(element: T, l: Collection[T]): - if element in l: - raise AssertionError(f"{element} must not be in {l}") +def assertNotIn(element: T, collection: Collection[T]): + if element in collection: + raise AssertionError(f"{element} must not be in {collection}") def check_match_str(string: str):