Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add a test verifying %timeit magic command output format for multi-line code blocks #15044

@Stevenjoy90115

Description

@Stevenjoy90115

Currently, the IPython test suite covers %timeit for single-line input, but it does not directly test whether %timeit produces correctly formatted output (including best time and standard deviation) for multi-line code blocks or cell magics.
This issue proposes adding a new test that:

Runs %timeit with a multi-line code block or cell magic in an IPython test.
Asserts that the output format is as expected (e.g., includes 'best' and '±' values).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions