Add test for cProfile

This commit is contained in:
Michael Droettboom 2018-11-08 15:22:29 -05:00
parent 2607e426f6
commit bffedb087b
1 changed files with 9 additions and 0 deletions

View File

@ -530,3 +530,12 @@ def test_runpythonasync_exception_after_import(selenium_standalone):
assert "ZeroDivisionError" in str(e)
else:
assert False
def test_cprofile(selenium_standalone):
selenium_standalone.run(
"""
import cProfile
cProfile.run("import colorsys")
"""
)