diff --git a/src/aws_encryption_sdk/internal/crypto/elliptic_curve.py b/src/aws_encryption_sdk/internal/crypto/elliptic_curve.py index 47af50b8c..83e6b2def 100644 --- a/src/aws_encryption_sdk/internal/crypto/elliptic_curve.py +++ b/src/aws_encryption_sdk/internal/crypto/elliptic_curve.py @@ -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): diff --git a/test/unit/test_streaming_client_encryption_stream.py b/test/unit/test_streaming_client_encryption_stream.py index 9b399b6b3..c54455654 100644 --- a/test/unit/test_streaming_client_encryption_stream.py +++ b/test/unit/test_streaming_client_encryption_stream.py @@ -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 @@ -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( @@ -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):