Skip to content

doctest._SpoofOut.truncate() is passing None to seek() when the size argument is not given. #102967

@aaron-fl

Description

@aaron-fl

Bug report

doctest._SpoofOut.truncate() is passing None to seek() when the size argument is not given.
You must pass an integer to seek.
So, if no size argument is given then simply truncate from the current position.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions