From a2f0859ac3f1e0f43daa0197cda20c200ac9a557 Mon Sep 17 00:00:00 2001 From: Yingtong Li Date: Mon, 25 Sep 2017 17:25:06 +1000 Subject: [PATCH] Fix a bad mistake --- eos/core/objects/__init__.py | 2 ++ eos/core/tests.py | 2 ++ test.sh | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) 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