Fix a bad mistake

This commit is contained in:
Yingtong Li 2017-09-25 17:25:06 +10:00
parent 4359316b10
commit a2f0859ac3
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
3 changed files with 5 additions and 1 deletions

View File

@ -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 :(

View File

@ -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
# ==============

View File

@ -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