diff --git a/test/test_jsinterp.py b/test/test_jsinterp.py index 916f9c334..282b36f70 100644 --- a/test/test_jsinterp.py +++ b/test/test_jsinterp.py @@ -104,6 +104,7 @@ class TestJSInterpreter(unittest.TestCase): }''') self.assertEqual(jsi.call_function('x'), [20, 20, 30, 40, 50]) + @unittest.skip('Interpreting function call not yet implemented') def test_call(self): jsi = JSInterpreter(''' function x() { return 2; } @@ -113,7 +114,9 @@ class TestJSInterpreter(unittest.TestCase): self.assertEqual(jsi.call_function('z'), 5) jsi = JSInterpreter('function x(a) { return a.split(""); }', objects={'a': 'abc'}) self.assertEqual(jsi.call_function('x'), ["a", "b", "c"]) - return + + @unittest.skip('Interpreting function call not yet implemented') + def test_complex_call(self): jsi = JSInterpreter(''' function a(x) { return x; } function b(x) { return x; } diff --git a/test/test_jsinterp_parser.py b/test/test_jsinterp_parser.py index 509b7d7c5..9309e8816 100644 --- a/test/test_jsinterp_parser.py +++ b/test/test_jsinterp_parser.py @@ -504,7 +504,9 @@ class TestJSInterpreterParser(unittest.TestCase): self.assertEqual(jsi.call_function('z'), 5) jsi = JSInterpreter('function x(a) { return a.split(""); }', objects={'a': 'abc'}) self.assertEqual(jsi.call_function('x'), ["a", "b", "c"]) - return + + @unittest.skip('Parsing function declaration not yet implemented') + def test_complex_call(self): jsi = JSInterpreter(''' function a(x) { return x; } function b(x) { return x; } diff --git a/youtube_dl/jsinterp/tstream.py b/youtube_dl/jsinterp/tstream.py index 8a5058d03..1f7ffacea 100644 --- a/youtube_dl/jsinterp/tstream.py +++ b/youtube_dl/jsinterp/tstream.py @@ -16,7 +16,6 @@ from .jsgrammar import ( Token ) - _PUNCTUATIONS = { '{': Token.COPEN, '}': Token.CCLOSE,