mirror of https://github.com/pyodide/pyodide.git
Add test for cProfile
This commit is contained in:
parent
2607e426f6
commit
bffedb087b
|
@ -530,3 +530,12 @@ def test_runpythonasync_exception_after_import(selenium_standalone):
|
||||||
assert "ZeroDivisionError" in str(e)
|
assert "ZeroDivisionError" in str(e)
|
||||||
else:
|
else:
|
||||||
assert False
|
assert False
|
||||||
|
|
||||||
|
|
||||||
|
def test_cprofile(selenium_standalone):
|
||||||
|
selenium_standalone.run(
|
||||||
|
"""
|
||||||
|
import cProfile
|
||||||
|
cProfile.run("import colorsys")
|
||||||
|
"""
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue