diff options
-rw-r--r-- | tensorflow/contrib/ffmpeg/decode_audio_op_test.py | 2 | ||||
-rw-r--r-- | tensorflow/contrib/ffmpeg/encode_audio_op_test.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/contrib/ffmpeg/decode_audio_op_test.py b/tensorflow/contrib/ffmpeg/decode_audio_op_test.py index 232547643f..f362e9d6bf 100644 --- a/tensorflow/contrib/ffmpeg/decode_audio_op_test.py +++ b/tensorflow/contrib/ffmpeg/decode_audio_op_test.py @@ -43,7 +43,7 @@ class DecodeAudioOpTest(tf.test.TestCase): with self.test_session(): path = os.path.join( resource_loader.get_data_files_path(), 'testdata', filename) - with open(path, 'r') as f: + with open(path, 'rb') as f: contents = f.read() audio_op = ffmpeg.decode_audio( 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( |