From bffedb087be30f80aa6eb9c75b572669a85acf7a Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 8 Nov 2018 15:22:29 -0500 Subject: [PATCH] Add test for cProfile --- test/test_python.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/test_python.py b/test/test_python.py index 7503badc6..989f7a9c4 100644 --- a/test/test_python.py +++ b/test/test_python.py @@ -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") + """ + )