Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

test_complex.test_truediv can fail #144173

Open
Labels
testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error
@encukou

Description

@encukou

Bug report

Bug description:

test_truediv hasthe following check:

# Just for fun.foriinrange(100):self.check_div(complex(random(),random()),complex(random(),random()))

wherecheck_div(x, y) checks that(x * y) / y is"close" tox.

This recentlyfailed onAMD64 Arch Linux Usan Function with:

./python -m test test_complex -m test_truediv --randseed 1627284292

It fails with1e-09 for the first random number and1 for the rest.

Looks like a test bug but it might be better if a float/complex expert takes a look around here.@skirpichev, is this interesting for you?

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp