Skip to content

Commit 1542786

Browse files
lavalerirobin-aws
authored andcommitted
chore: Mark pylint false positive (aws#320)
1 parent 015c61e commit 1542786

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/aws_encryption_sdk/internal/crypto/elliptic_curve.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _ecc_decode_compressed_point(curve, compressed_point):
123123
y_order_map = {b"\x02": 0, b"\x03": 1}
124124
raw_x = compressed_point[1:]
125125
raw_x = to_bytes(raw_x)
126-
x = int_from_bytes(raw_x, "big")
126+
x = int_from_bytes(raw_x, "big") # pylint: disable=not-callable
127127
raw_y = compressed_point[0]
128128
# In Python3, bytes index calls return int values rather than strings
129129
if isinstance(raw_y, six.integer_types):

test/unit/test_streaming_client_encryption_stream.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def test_next(self):
344344
)
345345
self.mock_source_stream.closed = False
346346
mock_stream.readline = MagicMock(return_value=sentinel.line)
347-
test = mock_stream.next()
347+
test = mock_stream.next() # pylint: disable=not-callable
348348
mock_stream.readline.assert_called_once_with()
349349
assert test is sentinel.line
350350

@@ -355,7 +355,7 @@ def test_next_stream_closed(self):
355355
mock_stream.close()
356356

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

360360
def test_next_source_stream_closed_and_buffer_empty(self):
361361
mock_stream = MockEncryptionStream(
@@ -365,7 +365,7 @@ def test_next_source_stream_closed_and_buffer_empty(self):
365365
mock_stream.output_buffer = b""
366366

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

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

0 commit comments

Comments
 (0)