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 agthorr
Recipients
Date 2007-05-15.19:25:07
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I just noticed that my last suggestion makes test_tuple fail because tuple's don't support __imul__.  Here's a revised suggestion:

    def test_bigrepeat(self):
        x = self.type2test([0])
        x *= 2**16
        self.assertRaises(MemoryError, x.__mul__, 2**16)
        if hasattr(x, '__imul__'):
            self.assertRaises(MemoryError, x.__imul__, 2**16)

History
Date User Action Args
2007-08-23 15:58:11adminlinkissue1704621 messages
2007-08-23 15:58:11admincreate