Skip to content

Commit 8bf06db

Browse files
committed
Disable pylint error E1101 (no-member)
This seems to be a false positive related to unpacking a tuple in a for loop. Signed-off-by: Lukas Puehringer <[email protected]>
1 parent 32b654b commit 8bf06db

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

tests/test_formats.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,15 @@ def test_schemas(self):
224224
schema_type,
225225
valid_schema,
226226
) in valid_schemas.items():
227-
if not schema_type.matches(valid_schema):
227+
if not schema_type.matches( # pylint: disable=no-member
228+
valid_schema
229+
):
228230
print("bad schema: " + repr(valid_schema))
229231

230-
self.assertEqual(True, schema_type.matches(valid_schema))
232+
self.assertEqual(
233+
True,
234+
schema_type.matches(valid_schema), # pylint: disable=no-member
235+
)
231236

232237
# Test conditions for invalid schemas.
233238
# Set the 'valid_schema' of 'valid_schemas' to an invalid
@@ -237,7 +242,12 @@ def test_schemas(self):
237242

238243
if isinstance(schema_type, securesystemslib.schema.Integer):
239244
invalid_schema = "BAD"
240-
self.assertEqual(False, schema_type.matches(invalid_schema))
245+
self.assertEqual(
246+
False,
247+
schema_type.matches( # pylint: disable=no-member
248+
invalid_schema
249+
),
250+
)
241251

242252
def test_unix_timestamp_to_datetime(self):
243253
# Test conditions for valid arguments.

0 commit comments

Comments
 (0)