X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=test%2Ftest_swfinterp.py;h=9f18055e629d3c21826ad8159bdf0ae55409bca2;hb=cd85a1bb8b24eaf6a421a32a985d4c3ad4f80597;hp=3bb5a6308ca03ceb3f6107e6fe3e48256a92a893;hpb=199ece7eb83ffe7ba069b50080fe971df1db2d6c;p=youtube-dl diff --git a/test/test_swfinterp.py b/test/test_swfinterp.py index 3bb5a6308..9f18055e6 100644 --- a/test/test_swfinterp.py +++ b/test/test_swfinterp.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +from __future__ import unicode_literals # 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__)))) +import errno import io import json import re @@ -36,7 +38,9 @@ def _make_testfunc(testfile): or os.path.getmtime(swf_file) < os.path.getmtime(as_file)): # 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.')