Skip to content

Assert int('0') throws an AssertionError #104435

Closed as not planned
Closed as not planned
@ludionisio

Description

@ludionisio

Bug report

Testing for valid string to number conversion fails when it should not.

Your environment

Ubuntu 22.04
Tested with python 3.11, 3.10 and even 2.7. Seems to have always been there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions