Skip to content

Commit

Permalink
chore: Mark pylint false positive (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
lavaleri committed Feb 26, 2021
1 parent ac3b028 commit 6f98efc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 6f98efc

Please sign in to comment.