Commit bffedb08 authored by Michael Droettboom's avatar Michael Droettboom

Add test for cProfile

parent 2607e426
...@@ -530,3 +530,12 @@ def test_runpythonasync_exception_after_import(selenium_standalone): ...@@ -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")
"""
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment