This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients gregory.p.smith, mark.dickinson, ned.deily, pitrou, vstinner
Date 2018-05-31.13:15:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527772522.99.0.682650639539.issue33627@psf.upfronthosting.co.za>
In-reply-to
Content
> Lib/test/test_numeric_tower.py:184 in test_complex

The crash occurs at:

    def test_complex(self):
        # comparisons with complex are special:  equality and inequality
        # comparisons should always succeed, but order comparisons should
        # raise TypeError.
        z = 1.0 + 0j
        w = -3.14 + 2.7j

        for v in 1, 1.0, F(1), D(1), complex(1):  # <~~ HERE
            self.assertEqual(z, v)
            self.assertEqual(v, z)

where F = fractions.Fraction and D = decimal.Decimal
History
Date User Action Args
2018-05-31 13:15:23vstinnersetrecipients: + vstinner, gregory.p.smith, mark.dickinson, pitrou, ned.deily
2018-05-31 13:15:22vstinnersetmessageid: <1527772522.99.0.682650639539.issue33627@psf.upfronthosting.co.za>
2018-05-31 13:15:22vstinnerlinkissue33627 messages
2018-05-31 13:15:22vstinnercreate