Skip to content

Commit

Permalink
Merge pull request googleapis#1449 from dhermes/fix-1434
Browse files Browse the repository at this point in the history
Strips multipart messages in BigQuery before comparing.
  • Loading branch information
dhermes committed Feb 12, 2016
2 parents ddaad02 + bb0ec06 commit ac33853
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcloud/bigquery/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -1397,9 +1397,9 @@ def test_upload_from_file_w_bound_client_multipart(self):
{'Content-Type': 'application/octet-stream',
'Content-Transfer-Encoding': 'binary',
'MIME-Version': '1.0'})
body = BODY.decode('ascii')
body = BODY.decode('ascii').rstrip()
body_lines = [line.strip() for line in body.splitlines()]
payload_lines = app_msg._payload.splitlines()
payload_lines = app_msg._payload.rstrip().splitlines()
self.assertEqual(payload_lines, body_lines)

# pylint: disable=R0915
Expand Down

0 comments on commit ac33853

Please sign in to comment.