Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
127f81fe
Commit
127f81fe
authored
Sep 20, 2018
by
Michael Droettboom
Committed by
GitHub
Sep 20, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #179 from rth/better-tracebacks
Simplify traceback on package load timeout
parents
c75531db
a711d059
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
cpython/Makefile
cpython/Makefile
+1
-1
test/conftest.py
test/conftest.py
+3
-1
No files found.
cpython/Makefile
View file @
127f81fe
...
...
@@ -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)
;
\
)
...
...
test/conftest.py
View file @
127f81fe
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment