#31117: ThreadTests fails due to double test_ prefix caused by 
TestDbCreationTests.
-----------------------------------+------------------------------------
     Reporter:  Matthijs Kooijman  |                    Owner:  nobody
         Type:  Bug                |                   Status:  new
    Component:  Testing framework  |                  Version:  master
     Severity:  Normal             |               Resolution:
     Keywords:                     |             Triage Stage:  Accepted
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------

Comment (by Matthijs Kooijman):

 `./runtests.py multiple_database.tests backends.base backends.tests`
   works without any issues.

 Oh, interesting. Parallelization might indeed be related (I can imagine
 that when parallelization causes the two problematic tests to be ran in
 different threads and/or different order, this might not break).

 However, something else seems to be going on (as well maybe). The command
 you gave indeed works, but when I add `--parallel 1` (which would ensure
 the problematic tests are ran in the problematic order), it still works:

 {{{
 ./runtests.py multiple_database.tests backends.base backends.tests
 --parallel 1
 }}}

 Maybe there is some tests that, when ran in between, prevents this problem
 from occuring? OTOH, when I run the *entire* test suite, with
 parallelization, IIRC the problem *also* occurs.

 Regardless, I believe my analysis and proposed solution still hold. I just
 tried the fix and it seems to work, so pullrequest coming up.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31117#comment:2>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/074.a7cf9209432d032e38805485e1ea39bf%40djangoproject.com.

Reply via email to