[pypy-svn] r32364 - in pypy/dist/pypy: rpython/ootypesystem translator/js/test
fijal at codespeak.net
fijal at codespeak.net
Fri Sep 15 15:32:04 CEST 2006
Author: fijal
Date: Fri Sep 15 15:32:01 2006
New Revision: 32364
Modified:
pypy/dist/pypy/rpython/ootypesystem/bltregistry.py
pypy/dist/pypy/translator/js/test/test_bltn.py
Log:
Fixed issue with remaining caches between tests.
Modified: pypy/dist/pypy/rpython/ootypesystem/bltregistry.py
==============================================================================
--- pypy/dist/pypy/rpython/ootypesystem/bltregistry.py (original)
+++ pypy/dist/pypy/rpython/ootypesystem/bltregistry.py Fri Sep 15 15:32:01 2006
@@ -250,3 +250,6 @@
_class = hop.r_result.lowleveltype._class_
return hop.genop('new', [Constant(ExternalType.get(_class), concretetype=ootype.Void)], \
resulttype = ExternalType.get(_class))
+
+def rebuild_basic_external():
+ ExternalType.class_dict = {}
Modified: pypy/dist/pypy/translator/js/test/test_bltn.py
==============================================================================
--- pypy/dist/pypy/translator/js/test/test_bltn.py (original)
+++ pypy/dist/pypy/translator/js/test/test_bltn.py Fri Sep 15 15:32:01 2006
@@ -3,9 +3,13 @@
import py
-from pypy.rpython.ootypesystem.bltregistry import BasicExternal, MethodDesc
+from pypy.rpython.ootypesystem.bltregistry import BasicExternal, MethodDesc,\
+ rebuild_basic_external
from pypy.translator.js.test.runtest import compile_function, check_source_contains
+def setup_function(fun):
+ rebuild_basic_external()
+
# check rendering _dom.get_document()
def test_simple_builtin():
from pypy.translator.js.modules._dom import get_document
@@ -52,7 +56,6 @@
assert check_source_contains(fn, "\.some_callback = callback")
def test_get_elements():
- py.test.skip('"Should be working" - will investigate later')
from pypy.translator.js.modules import _dom as dom
def getaa(tname):
More information about the Pypy-commit
mailing list