Skip to content

Commit

Permalink
Disable pylint error E1101 (no-member)
Browse files Browse the repository at this point in the history
This seems to be a false positive related to unpacking a tuple
in a for loop.

Signed-off-by: Lukas Puehringer <[email protected]>
  • Loading branch information
lukpueh committed Oct 20, 2022
1 parent 32b654b commit 8bf06db
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions tests/test_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,15 @@ def test_schemas(self):
schema_type,
valid_schema,
) in valid_schemas.items():
if not schema_type.matches(valid_schema):
if not schema_type.matches( # pylint: disable=no-member
valid_schema
):
print("bad schema: " + repr(valid_schema))

self.assertEqual(True, schema_type.matches(valid_schema))
self.assertEqual(
True,
schema_type.matches(valid_schema), # pylint: disable=no-member
)

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

if isinstance(schema_type, securesystemslib.schema.Integer):
invalid_schema = "BAD"
self.assertEqual(False, schema_type.matches(invalid_schema))
self.assertEqual(
False,
schema_type.matches( # pylint: disable=no-member
invalid_schema
),
)

def test_unix_timestamp_to_datetime(self):
# Test conditions for valid arguments.
Expand Down

0 comments on commit 8bf06db

Please sign in to comment.