# Path: test/fake_time_util.py
# @contextlib.contextmanager
# def fake_time(fake_clock=None):
#     fake_clock = fake_clock or FakeClock()
#     stack_sampler.get_stack_sampler().timer_func = fake_clock.get_time
# 
#     try:
#         with mock.patch("time.sleep", new=fake_clock.sleep):
#             yield fake_clock
#     finally:
#         stack_sampler.get_stack_sampler().timer_func = None


from test.fake_time_util import fake_time
    from IPython.utils.io import capture_output as capture_ipython_output
    from IPython.testing.globalipapp import start_ipython
import pytest


# note: IPython should be imported within each test. Importing it in our tests
# seems to cause problems with subsequent tests.

cell_code = """
import time

def function_a():
    function_b()
    function_c()

def function_b():

# Path: test/fake_time_util.py
# @contextlib.contextmanager
# def fake_time(fake_clock=None):
#     fake_clock = fake_clock or FakeClock()
#     stack_sampler.get_stack_sampler().timer_func = fake_clock.get_time
# 
#     try:
#         with mock.patch("time.sleep", new=fake_clock.sleep):
#             yield fake_clock
#     finally:
#         stack_sampler.get_stack_sampler().timer_func = None


# Path: test/test_ipython_magic.py
from test.fake_time_util import fake_time
    from IPython.utils.io import capture_output as capture_ipython_output
    from IPython.testing.globalipapp import start_ipython
import pytest



# note: IPython should be imported within each test. Importing it in our tests
# seems to cause problems with subsequent tests.

cell_code = """
import time

def function_a():
    function_b()
    function_c()

def function_b():

    function_d()