Skip to content

Commit

Permalink
Merge pull request tensorflow#2563 from caisq/123507798
Browse files Browse the repository at this point in the history
Fix python3 incompatibility in encode_audio_op_test.py
  • Loading branch information
caisq committed May 29, 2016
2 parents 5edfba6 + 44000ed commit b54a1ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow/contrib/ffmpeg/encode_audio_op_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def _compareWavFiles(self, original, encoded):
# Skip header size
self.assertEqual(original[20:36], encoded[20:36])
# Skip extra bits inserted by ffmpeg.
self.assertEqual(original[original.find('data'):],
encoded[encoded.find('data'):])
self.assertEqual(original[original.find(b'data'):],
encoded[encoded.find(b'data'):])

def testRoundTrip(self):
"""Reads a wav file, writes it, and compares them."""
Expand Down

0 comments on commit b54a1ec

Please sign in to comment.