diff options
author | 2016-05-15 10:02:03 -0800 | |
---|---|---|
committer | 2016-05-15 11:12:13 -0700 | |
commit | bac0b65edba7ddcd658b9689aa09003f95ee72c1 (patch) | |
tree | e12ed375e4c9845894c933ddf0017241ff5c6b4a /tensorflow/contrib/ffmpeg/encode_audio_op_test.py | |
parent | 88562f64a943c16acb3668ccc91bb45c0489d01a (diff) |
Fix python3-compatibility issue in ffmpeg unit tests
Change: 122375344
Diffstat (limited to 'tensorflow/contrib/ffmpeg/encode_audio_op_test.py')
-rw-r--r-- | tensorflow/contrib/ffmpeg/encode_audio_op_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/ffmpeg/encode_audio_op_test.py b/tensorflow/contrib/ffmpeg/encode_audio_op_test.py index 74f05917a6..30f53e519d 100644 --- a/tensorflow/contrib/ffmpeg/encode_audio_op_test.py +++ b/tensorflow/contrib/ffmpeg/encode_audio_op_test.py @@ -34,7 +34,7 @@ class EncodeAudioOpTest(tf.test.TestCase): with self.test_session(): path = os.path.join( resource_loader.get_data_files_path(), 'testdata/mono_10khz.wav') - with open(path, 'r') as f: + with open(path, 'rb') as f: original_contents = f.read() audio_op = ffmpeg.decode_audio( |