mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
fix: regression introduced in aws-sdk-go tests
regression was introduced by cce5d7152a
which incorrectly implemented the tests and fixed a wrong requirement,
CompleteMultipart should never succeed in the tests.
This commit is contained in:
@@ -18,11 +18,10 @@
|
||||
import io
|
||||
from datetime import datetime
|
||||
|
||||
from minio.selectrequest import (FILE_HEADER_INFO_NONE, JSON_TYPE_DOCUMENT,
|
||||
QUOTE_FIELDS_ASNEEDED, CSVInputSerialization,
|
||||
CSVOutputSerialization,
|
||||
JSONInputSerialization,
|
||||
JSONOutputSerialization, SelectRequest)
|
||||
from minio.select import (FILE_HEADER_INFO_NONE, JSON_TYPE_DOCUMENT,
|
||||
QUOTE_FIELDS_ASNEEDED, CSVInputSerialization,
|
||||
CSVOutputSerialization, JSONInputSerialization,
|
||||
JSONOutputSerialization, SelectRequest)
|
||||
|
||||
from utils import generate_bucket_name, generate_object_name
|
||||
|
||||
@@ -58,7 +57,7 @@ def test_sql_expressions_custom_input_output(client, input_bytes, sql_input,
|
||||
# Get the records
|
||||
records = io.BytesIO()
|
||||
for d in data.stream(10*1024):
|
||||
records.write(d.encode('utf-8'))
|
||||
records.write(d)
|
||||
got_output = records.getvalue()
|
||||
|
||||
if got_output != expected_output:
|
||||
|
||||
Reference in New Issue
Block a user