[svn r58012] fix imports so that tests pass against pypy-dist
--HG-- branch : trunk
This commit is contained in:
@@ -15,14 +15,14 @@ def setup_module(mod):
|
||||
mod.commproxy.USE_MOCHIKIT = False
|
||||
mod.rpython2javascript = rpython2javascript
|
||||
mod.commproxy = mod.commproxy
|
||||
from py.__.test.dsession.web import TestHandler as _TestHandler
|
||||
from py.__.test.dsession.web import MultiQueue
|
||||
from py.__.test.report.web import TestHandler as _TestHandler
|
||||
from py.__.test.report.web import MultiQueue
|
||||
mod._TestHandler = _TestHandler
|
||||
mod.MultiQueue = MultiQueue
|
||||
|
||||
def test_js_generate():
|
||||
from py.__.test.dsession import webjs
|
||||
from py.__.test.dsession.web import FUNCTION_LIST, IMPORTED_PYPY
|
||||
from py.__.test.report import webjs
|
||||
from py.__.test.report.web import FUNCTION_LIST, IMPORTED_PYPY
|
||||
|
||||
source = rpython2javascript(webjs, FUNCTION_LIST, use_pdb=False)
|
||||
assert source
|
||||
|
||||
@@ -12,8 +12,8 @@ def check(mod):
|
||||
mod.dom = dom
|
||||
mod.schedule_callbacks = schedule_callbacks
|
||||
|
||||
from py.__.test.dsession import webjs
|
||||
from py.__.test.dsession.web import exported_methods
|
||||
from py.__.test.report import webjs
|
||||
from py.__.test.report.web import exported_methods
|
||||
mod.webjs = webjs
|
||||
mod.exported_methods = exported_methods
|
||||
mod.here = py.magic.autopath().dirpath()
|
||||
@@ -28,8 +28,8 @@ def setup_module(mod):
|
||||
mod.dom = dom
|
||||
dom.window = dom.Window(html)
|
||||
dom.document = dom.window.document
|
||||
from py.__.test.dsession import webjs
|
||||
from py.__.test.dsession.web import exported_methods
|
||||
from py.__.test.report import webjs
|
||||
from py.__.test.report.web import exported_methods
|
||||
mod.webjs = webjs
|
||||
mod.exported_methods = exported_methods
|
||||
|
||||
|
||||
Reference in New Issue
Block a user