projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ultimedia] keep direct support for ultimedia videos
[youtube-dl]
/
test
/
test_swfinterp.py
diff --git
a/test/test_swfinterp.py
b/test/test_swfinterp.py
index 3bb5a6308ca03ceb3f6107e6fe3e48256a92a893..f1e8998192b131613cb9d26a1167ce35e0a61e9f 100644
(file)
--- a/
test/test_swfinterp.py
+++ b/
test/test_swfinterp.py
@@
-1,4
+1,5
@@
#!/usr/bin/env python
#!/usr/bin/env python
+from __future__ import unicode_literals
# Allow direct execution
import os
# Allow direct execution
import os
@@
-7,6
+8,7
@@
import unittest
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+import errno
import io
import json
import re
import io
import json
import re
@@
-32,11
+34,13
@@
def _make_testfunc(testfile):
def test_func(self):
as_file = os.path.join(TEST_DIR, testfile)
swf_file = os.path.join(TEST_DIR, test_id + '.swf')
def test_func(self):
as_file = os.path.join(TEST_DIR, testfile)
swf_file = os.path.join(TEST_DIR, test_id + '.swf')
- if ((not os.path.exists(swf_file))
- o
r o
s.path.getmtime(swf_file) < os.path.getmtime(as_file)):
+ if ((not os.path.exists(swf_file))
or
+ os.path.getmtime(swf_file) < os.path.getmtime(as_file)):
# Recompile
try:
# Recompile
try:
- subprocess.check_call(['mxmlc', '-output', swf_file, as_file])
+ subprocess.check_call([
+ 'mxmlc', '-output', swf_file,
+ '-static-link-runtime-shared-libraries', as_file])
except OSError as ose:
if ose.errno == errno.ENOENT:
print('mxmlc not found! Skipping test.')
except OSError as ose:
if ose.errno == errno.ENOENT:
print('mxmlc not found! Skipping test.')