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
f35aa2ee
Commit
f35aa2ee
authored
Aug 24, 2018
by
Roman Yurchak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More review comments
parent
5030eae5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/pyodide.js
src/pyodide.js
+1
-1
test/test_python.py
test/test_python.py
+3
-2
No files found.
src/pyodide.js
View file @
f35aa2ee
...
...
@@ -49,7 +49,7 @@ var languagePluginLoader = new Promise((resolve, reject) => {
console
.
log
(
`Invalid package name or URI '
${
package_uri
}
'`
);
break
;
}
else
if
(
package
==
package_uri
)
{
package_uri
=
'
packages.json
'
;
package_uri
=
'
default channel
'
;
}
console
.
log
(
`Loading
${
package
}
from
${
package_uri
}
`
);
...
...
test/test_python.py
View file @
f35aa2ee
...
...
@@ -7,7 +7,8 @@ import pytest
def
test_init
(
selenium_standalone
):
assert
'Python initialization complete'
in
selenium_standalone
.
logs
assert
(
'Python initialization complete'
in
selenium_standalone
.
logs
.
splitlines
())
assert
len
(
selenium_standalone
.
driver
.
window_handles
)
==
1
...
...
@@ -19,7 +20,7 @@ def test_webbrowser(selenium):
def
test_print
(
selenium
):
selenium
.
run
(
"print('This should be logged')"
)
assert
'This should be logged'
in
selenium
.
logs
assert
'This should be logged'
in
selenium
.
logs
.
splitlines
()
def
test_python2js
(
selenium
):
...
...
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