Skip to content

Commit 6f98efc

Browse files
authored
chore: Mark pylint false positive (#320)
1 parent ac3b028 commit 6f98efc

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
@@ -401,7 +401,7 @@ def test_next(self):
401401
)
402402
self.mock_source_stream.closed = False
403403
mock_stream.readline = MagicMock(return_value=sentinel.line)
404-
test = mock_stream.next()
404+
test = mock_stream.next() # pylint: disable=not-callable
405405
mock_stream.readline.assert_called_once_with()
406406
assert test is sentinel.line
407407

@@ -415,7 +415,7 @@ def test_next_stream_closed(self):
415415
mock_stream.close()
416416

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

420420
def test_next_source_stream_closed_and_buffer_empty(self):
421421
mock_stream = MockEncryptionStream(
@@ -428,7 +428,7 @@ def test_next_source_stream_closed_and_buffer_empty(self):
428428
mock_stream.output_buffer = b""
429429

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

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

0 commit comments

Comments
 (0)