Skip to content

chore: Mark pylint false positive #320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/aws_encryption_sdk/internal/crypto/elliptic_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _ecc_decode_compressed_point(curve, compressed_point):
y_order_map = {b"\x02": 0, b"\x03": 1}
raw_x = compressed_point[1:]
raw_x = to_bytes(raw_x)
x = int_from_bytes(raw_x, "big")
x = int_from_bytes(raw_x, "big") # pylint: disable=not-callable
raw_y = compressed_point[0]
# In Python3, bytes index calls return int values rather than strings
if isinstance(raw_y, six.integer_types):
Expand Down
6 changes: 3 additions & 3 deletions test/unit/test_streaming_client_encryption_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def test_next(self):
)
self.mock_source_stream.closed = False
mock_stream.readline = MagicMock(return_value=sentinel.line)
test = mock_stream.next()
test = mock_stream.next() # pylint: disable=not-callable
mock_stream.readline.assert_called_once_with()
assert test is sentinel.line

Expand All @@ -415,7 +415,7 @@ def test_next_stream_closed(self):
mock_stream.close()

with pytest.raises(StopIteration):
mock_stream.next()
mock_stream.next() # pylint: disable=not-callable

def test_next_source_stream_closed_and_buffer_empty(self):
mock_stream = MockEncryptionStream(
Expand All @@ -428,7 +428,7 @@ def test_next_source_stream_closed_and_buffer_empty(self):
mock_stream.output_buffer = b""

with pytest.raises(StopIteration):
mock_stream.next()
mock_stream.next() # pylint: disable=not-callable

@patch("aws_encryption_sdk.streaming_client._EncryptionStream.closed", new_callable=PropertyMock)
def test_iteration(self, mock_closed):
Expand Down