aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_video.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-06-01 20:25:35 -0500
committerJesús <heckyel@hyperbola.info>2020-06-01 20:25:35 -0500
commit9d221d5af918803180f74cd9fcbf107d38b068de (patch)
tree9d2b61b17c2a6305e9c62aa6f13e89826bcccfc2 /test/test_video.py
parent507463cf0d147415d84990d9fd7eaff4aa6d7bd0 (diff)
downloadlibrevideoconverter-9d221d5af918803180f74cd9fcbf107d38b068de.tar.lz
librevideoconverter-9d221d5af918803180f74cd9fcbf107d38b068de.tar.xz
librevideoconverter-9d221d5af918803180f74cd9fcbf107d38b068de.zip
fix test
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)))