[jsinterp] Fixing code style
This commit is contained in:
parent
1b9d883a74
commit
327bb2dd86
@ -56,7 +56,6 @@ def generator(test_case, my_log):
|
||||
my_log.debug('globals: %s' % variables)
|
||||
my_log.debug(code)
|
||||
|
||||
|
||||
jsi = JSInterpreter(code, objects=variables)
|
||||
for assertion in test['asserts']:
|
||||
if 'value' in assertion:
|
||||
|
@ -17,6 +17,8 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
from youtube_dl.jsinterp2.jsparser import Parser
|
||||
from .js2tests import gettestcases
|
||||
|
||||
__doc__ = """see: `js2tests`"""
|
||||
|
||||
|
||||
def traverse(node, tree_types=(list, tuple)):
|
||||
if sys.version_info > (3,) and isinstance(node, zip):
|
||||
@ -30,9 +32,6 @@ def traverse(node, tree_types=(list, tuple)):
|
||||
return node
|
||||
|
||||
|
||||
__doc__ = """see: `js2tests`"""
|
||||
|
||||
|
||||
defs = gettestcases()
|
||||
# set level to logging.INFO to see messages about not set ASTs
|
||||
# set level to logging.DEBUG to see messages about code tests are running
|
||||
|
Loading…
x
Reference in New Issue
Block a user