summaryrefslogtreecommitdiff
path: root/tests/test_runner/test_parallel.py
AgeCommit message (Collapse)Author
2025-10-21[6.0.x] Made RemoteTestResultTest.test_pickle_errors_detection() compatible ↵Mariusz Felisiak
with tblib 3.2+. tblib 3.2+ makes exception subclasses with __init__() and the default __reduce__() picklable. This broke the test for RemoteTestResult._confirm_picklable(), which expects a specific exception to fail unpickling. https://github.com/ionelmc/python-tblib/blob/master/CHANGELOG.rst#320-2025-10-21 This fix defines ExceptionThatFailsUnpickling.__reduce__() in a way that pickle.dumps(obj) succeeds, but pickle.loads(pickle.dumps(obj)) raises TypeError. Refs #27301. This preserves the intent of the regression test from 52188a5ca6bafea0a66f17baacb315d61c7b99cd without skipping it. Backport of 548209e620b3ca34396a360453f07c8dbb8aa6c7 from main.
2025-10-02[6.0.x] Refs #36491 -- Skipped ↵Mariusz Felisiak
ParallelTestSuiteTest.test_buffer_mode_reports_setupclass_failure() without tblib. Backport of 6cb641ba75b1e6eace9a46e3cbade70e4af2ff66 from main
2025-09-26[6.0.x] Fixed #36491 -- Fixed crash in ParallelTestRunner with --buffer.Shubham Singh
Thanks Javier Buzzi and Adam Johnson for reviews. Co-authored-by: Simon Charette <charette.s@gmail.com> Backport of be581ff473e8ade6365975db2df602f295a4cb4b from main.
2025-09-16Fixed #36083 -- Ran system checks in ParallelTestSuite workers.Adam Zapletal
Workers created by ParallelTestSuite were not running system checks in the spawn multiprocessing mode. In general this is fine, but system checks can have side effects expected by tests. This patch runs system checks inside of _init_worker, which is only called by ParallelTestSuite.
2025-01-20Fixed #36005 -- Dropped support for Python 3.10 and 3.11.Mariusz Felisiak
2024-11-11Removed redundant RemoteTestResultTest._test_error_exc_info() test hook.Mariusz Felisiak
2024-11-11Refs #35849 -- Skipped ↵Mariusz Felisiak
ParallelTestSuiteTest.test_handle_add_error_before_first_test() without tblib. Follow up to 661dfdd59809f4abd5077f7a2529735d07b98ba4.
2024-11-06Fixed #35849 -- Made ParallelTestSuite report correct error location.David Winiecki
2024-02-22Refs #32114 -- Fixed RemoteTestResultTest.test_unpicklable_subtest test ↵Mariusz Felisiak
without tblib. Follow up to c09e8f5fd8f977bf16e9ec5d11b370151fc81ea8.
2024-02-21Fixed #32114 -- Fixed parallel test crash on non-picklable objects in subtests.David Wobrock
2023-08-31Fixed #34210 -- Added unittest's durations option to the test runner.David Smith
2023-02-01Refs #33476 -- Applied Black's 2023 stable style.David Smith
Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
2022-04-07Refs #33173 -- Fixed test_runner/test_utils tests on Python 3.11+.Mariusz Felisiak
Python 3.11 uses fully qualified test name in unittest output. See https://github.com/python/cpython/commit/755be9b1505af591b9f2ee424a6525b6c2b65ce9
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-03-25Fixed RemoteTestResultTest tests without tblib.Mariusz Felisiak
Follow up to e3bca22e7e572b0274a0814c7869c899d7b544e0.
2021-03-18Refs #31370 -- Made RemoteTestResult subclass unittest.TestResult.Adam Johnson
2021-03-18Refs #31370 -- Added test for pickling RemoteTestResult.Adam Johnson
2021-02-10Fixed #32355 -- Dropped support for Python 3.6 and 3.7Mariusz Felisiak
2019-10-23Refs #29926 -- Bumped minimum tblib version to 1.5.0 in test requirements.Mariusz Felisiak
2019-10-22Refs #29926 -- Skipped RemoteTestResultTest.test_add_failing_subtests() on ↵Mariusz Felisiak
Python 3.8+ and tblib <= 1.4.0.
2017-11-17Refs #28814 -- Fixed test_runner failure on Python 3.7.Tim Graham
Due to https://bugs.python.org/issue30399.
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-10-06Fixed #27301 -- Prevented exceptions that fail unpickling from crashing the ↵Adam Wróbel
parallel test runner.
2016-08-26Fixed #26942 -- Added support for subtests during parallel testing.Chris Jerdonek