Skip to content

assertAlmostEqual: ValueError on negative delta #96882

@wehlgrundspitze

Description

@wehlgrundspitze

While adding the keyword rel_delta to the test functions assertAlmostEqual and assertNotAlmostEqual (issue #96881 ), I thought about restrictions on delta and rel_delta. Obviously, they should be both positive to perform a meaningful test. So far, there is no exception thrown if they are negative. Shouldn't there be ValueError implemented ?

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