diff --git a/eos/core/objects/__init__.py b/eos/core/objects/__init__.py index f0f070b..f10f5fc 100644 --- a/eos/core/objects/__init__.py +++ b/eos/core/objects/__init__.py @@ -192,6 +192,8 @@ class EosObject(metaclass=EosObjectType): class EosList(EosObject): def __init__(self, *args): + super().__init__() + self.impl = list(*args) # Lists in JS are implemented as native Arrays, so no cheating here :( diff --git a/eos/core/tests.py b/eos/core/tests.py index 9854e99..413070d 100644 --- a/eos/core/tests.py +++ b/eos/core/tests.py @@ -42,8 +42,10 @@ class EosTestCase: def py_only(func): func._py_only = True + return func def js_only(func): func._js_only = True + return func # eos.core tests # ============== diff --git a/test.sh b/test.sh index 3073999..5de0cf3 100755 --- a/test.sh +++ b/test.sh @@ -1,3 +1,3 @@ #!/bin/bash -coverage run --source=eos --omit='*/js.py','eos/js_tests.py','*/tests.py' -m eos.tests || exit 1 +coverage run --source=eos --omit='*/js.py','eos/js_tests.py' -m eos.tests || exit 1 coverage html