mirror of https://github.com/pyodide/pyodide.git
Simplify traceback on package load timeout
This commit is contained in:
parent
bd846468bc
commit
a711d059d5
|
@ -83,7 +83,7 @@ $(BUILD)/Makefile: $(BUILD)/.patched $(ZLIBBUILD)/.patched
|
|||
cp config.site $(BUILD)/
|
||||
( \
|
||||
cd $(BUILD); \
|
||||
CONFIG_SITE=./config.site READELF=true emconfigure ./configure --without-threads --without-pymalloc --disable-shared --disable-ipv6 --without-gcc --host=asmjs-unknown-emscripten --build=$(shell $(BUILD)/config.guess) --prefix=$(INSTALL) ; \
|
||||
CONFIG_SITE=./config.site READELF=true emconfigure ./configure --without-pymalloc --disable-shared --disable-ipv6 --without-gcc --host=asmjs-unknown-emscripten --build=$(shell $(BUILD)/config.guess) --prefix=$(INSTALL) ; \
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -102,17 +102,19 @@ class SeleniumWrapper:
|
|||
'window.done = false\n' +
|
||||
'pyodide.loadPackage({!r})'.format(packages) +
|
||||
'.finally(function() { window.done = true; })')
|
||||
__tracebackhide__ = True
|
||||
self.wait_until_packages_loaded()
|
||||
|
||||
def wait_until_packages_loaded(self):
|
||||
from selenium.common.exceptions import TimeoutException
|
||||
|
||||
__tracebackhide__ = True
|
||||
try:
|
||||
self.wait.until(PackageLoaded())
|
||||
except TimeoutException as exc:
|
||||
_display_driver_logs(self.browser, self.driver)
|
||||
print(self.logs)
|
||||
raise TimeoutException()
|
||||
raise TimeoutException('wait_until_packages_loaded timed out')
|
||||
|
||||
@property
|
||||
def urls(self):
|
||||
|
|
Loading…
Reference in New Issue