aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_video.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_video.py')
-rw-r--r--test/test_video.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test_video.py b/test/test_video.py
index a0ff18c..0bfc2ae 100644
--- a/test/test_video.py
+++ b/test/test_video.py
@@ -1,7 +1,7 @@
import os
import os.path
import tempfile
-import threading
+# import threading
import unittest
import mock
@@ -14,14 +14,15 @@ class GetMediaInfoTest(base.Test):
def assertClose(self, output, expected):
diff = output - expected
- self.assertTrue(diff ** 2 < 0.04, # abs(diff) < 0.2
+ # abs(diff) < 0.2
+ self.assertTrue(diff ** 2 < 0.04,
"%s != %s" % (output, expected))
def assertEqualOutput(self, filename, expected):
full_path = os.path.join(self.testdata_dir, filename)
try:
output = video.get_media_info(full_path)
- except Exception, e:
+ except Exception as e:
raise AssertionError(
'Error parsing %r\nException: %r\nOutput: %s' % (
filename, e, video.get_ffmpeg_output(full_path)))