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

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Old description:

> The error occurs when `NoSuchElementException` (selenium) exception is
> raised:
>
> {{{
>
> test_changing_password (apps.users.tests.test_admin.UserAdminLiveServer)
> failed:
>
>     NoSuchElementException()
>
> Unfortunately, tracebacks cannot be pickled, making it impossible for the
> parallel test runner to handle this exception cleanly.
>
> In order to see the traceback, you should install tblib:
>
>     pip install tblib
>
> (...)
>
>     subsuite_index, events = test_results.next(timeout=0.1)
>   File "/usr/lib/python2.7/multiprocessing/pool.py", line 659, in next
>     raise value
> TypeError: can't pickle traceback objects
> }}}
>
> After installing tblib everything is ok:
>
> {{{
> (...)
>
> ----------------------------------------------------------------------
> Ran 121 tests in 53.847s
>
> FAILED (errors=2, skipped=2)
> }}}

New description:

 The error occurs when `NoSuchElementException` (selenium) exception is
 raised:

 {{{

 test_changing_password (apps.users.tests.test_admin.UserAdminLiveServer)
 failed:

     NoSuchElementException()

 Unfortunately, tracebacks cannot be pickled, making it impossible for the
 parallel test runner to handle this exception cleanly.

 In order to see the traceback, you should install tblib:

     pip install tblib

 (...)

     subsuite_index, events = test_results.next(timeout=0.1)
   File "/usr/lib/python2.7/multiprocessing/pool.py", line 659, in next
     raise value
 TypeError: can't pickle traceback objects
 }}}

 After installing `tblib` everything is ok:

 {{{
 (...)

 ----------------------------------------------------------------------
 Ran 121 tests in 53.847s

 FAILED (errors=2, skipped=2)
 }}}

--

--
Ticket URL: <https://code.djangoproject.com/ticket/25497#comment:1>
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.0f5f9a35c16f454fa17fafb9456762fe%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to