#25497: Parallel test fails if tblib is not installed.
-----------------------------------+--------------------------------------
     Reporter:  user0007           |                    Owner:  nobody
         Type:  Bug                |                   Status:  closed
    Component:  Testing framework  |                  Version:  1.9a1
     Severity:  Release blocker    |               Resolution:  worksforme
     Keywords:                     |             Triage Stage:  Accepted
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+--------------------------------------
Changes (by aaugustin):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 This ticket's description is misleading. Parallel test *fail to report
 failures correctly and suggest to install tblib* when it isn't installed.

 This is the intended and documented behavior. It was discussed on the
 DevelopersMailingList prior to the feature being implemeted and committed.
 As shown in your description, there's a detailed explanation message. I'm
 not sure what else I could do

 You have three options, pick your favorite:

 1) Don't run tests in parallel and get exactly the same behavior as in
 Django 1.8.
 2) Have your tests crash hard if an exception occurs.
 3) Install `tblib`.

 Claude, in case this isn't clear, `tblib` is only required for getting
 correct failure reports when running tests in parallel.

 Collin, I don't think it makes sense to ignore the `--parallel` option
 when `tblib` isn't installed. As long as tests complete without errors or
 failures, `tblib` isn't needed.

 Of course as soon as you have a test failure you'll want to know why it
 fails. If you're absolutely unable to `pip install tblib` and absolutely
 need to run tests in parallel — I can't see why that would be the case,
 but for the sake of the argument let's assume at least one user will be in
 this situation — you can re-run just the failing test without the
 `--parallel` option.

 If someone proposes a patch to improve the situation, we can reopen this
 discussion.

--
Ticket URL: <https://code.djangoproject.com/ticket/25497#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.84ca6aed3208c316a00959cabb88e223%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to