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 martin.panter
Recipients martin.panter, s-wakaba
Date 2015-09-22.09:11:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442913064.03.0.769248058306.issue25211@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for the patch, it looks correct. The Frm class takes a variable number of *args, and then returns “format % args”. It should at least be applied to the 2.7 branch.

For 3.4+, perhaps we can eliminate the need for the Frm class altogether, by using TestCase.subTest():

def check_bitop_identities_1(self, x):
    eq = self.assertEqual
    with self.subTest(x=x):
        eq(x & 0, 0)
        ...
        for n in range(2*SHIFT):
            p2 = 2 ** n
            with self.subTest(n=n, p2=p2):
                eq(x << n >> n, x)
                ...
                eq(x & -p2, x & ~(p2 - 1))
History
Date User Action Args
2015-09-22 09:11:04martin.pantersetrecipients: + martin.panter, s-wakaba
2015-09-22 09:11:04martin.pantersetmessageid: <1442913064.03.0.769248058306.issue25211@psf.upfronthosting.co.za>
2015-09-22 09:11:03martin.panterlinkissue25211 messages
2015-09-22 09:11:03martin.pantercreate