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 xdegaye
Recipients vstinner, xdegaye
Date 2014-10-11.08:39:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1413016766.74.0.250429853866.issue22607@psf.upfronthosting.co.za>
In-reply-to
Content
With the attached patch (the patch does reintroduce the bug in 'test_incref_decref_API' of issue 22588 for testing purposes), it is possible to find the failing subtest rapidly:

After identifying the failing test, print the list of subtests in this test and their number (35 subsets):
$ export SUBTEST_RANGE="[]"
$ ./python -m test -m test__testcapi test_capi

Then run:
$ ./python -m test -m test__testcapi -R 23:23 test_capi

after modifying, each time, the range of subtests to execute, with:
$ export SUBTEST_RANGE="range(1,18)"    # tests 1-17   result: fail
$ export SUBTEST_RANGE="range(1,9)"     # tests 1-8    result: pass
$ export SUBTEST_RANGE="range(9,13)"    # tests 9-12   result: fail
$ export SUBTEST_RANGE="range(9,11)"    # tests 9-10   result: fail
$ export SUBTEST_RANGE="[9]"            # so it must be test #9, check it now

The strong limitation with this solution is that the subTest context manager must now be enclosed in a 'try except unittest.SkipTest' clause and that the context manager is used more than 100 times in the test suite.
History
Date User Action Args
2014-10-11 08:39:26xdegayesetrecipients: + xdegaye, vstinner
2014-10-11 08:39:26xdegayesetmessageid: <1413016766.74.0.250429853866.issue22607@psf.upfronthosting.co.za>
2014-10-11 08:39:26xdegayelinkissue22607 messages
2014-10-11 08:39:26xdegayecreate