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 michael.foord
Recipients Yaroslav.Halchenko, abingham, brian.curtin, eric.araujo, eric.snow, exarkun, ezio.melotti, fperez, michael.foord, nchauvat, ncoghlan, pitrou, r.david.murray, terry.reedy
Date 2011-07-23.18:09:59
SpamBayes Score 0.00045452025
Marked as misclassified No
Message-id <>
Having a "TestCase factory" would be pretty easy, and solve the scaling problems.

For example:

def make_testcase_classes():
    for backend in backends:
        yield type(
            (TheBaseClass, unittest.TestCase),
            {'backend': backend}

You would use this in the load_tests function at the module level to generate all the test cases.
Date User Action Args
2011-07-23 18:10:00michael.foordsetrecipients: + michael.foord, terry.reedy, exarkun, ncoghlan, pitrou, ezio.melotti, eric.araujo, r.david.murray, brian.curtin, fperez, Yaroslav.Halchenko, nchauvat, abingham, eric.snow
2011-07-23 18:10:00michael.foordsetmessageid: <>
2011-07-23 18:10:00michael.foordlinkissue12600 messages
2011-07-23 18:10:00michael.foordcreate