[Django] #30809: test_clear_site_cache consistently hangs up / fails when running all tests

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Django] #30809: test_clear_site_cache consistently hangs up / fails when running all tests

Django
#30809: test_clear_site_cache consistently hangs up / fails when running all tests
-------------------------------------+-------------------------------------
               Reporter:  Neil       |          Owner:  nobody
  Strain                             |
                   Type:  Bug        |         Status:  new
              Component:  Testing    |        Version:  master
  framework                          |
               Severity:  Normal     |       Keywords:  tests, unit tests
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 - Python 3.6.9 virtual environment
 - `tests/runtests.py -v3`:

 {{{
 Make sure passing the wrong kinds of arguments outputs an error and prints
 usage ... ok
 test_output_normal (test_runner.test_debug_sql.TestDebugSQL) ... ok
 test_output_verbose (test_runner.test_debug_sql.TestDebugSQL) ... ok
 ^C
 ======================================================================
 FAIL: test_clear_site_cache (sites_tests.tests.SitesFrameworkTests)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/Users/nstrain/.pyenv/versions/3.6.9/lib/python3.6/unittest/case.py",
 line 59, in testPartExecutor
     yield
   File
 "/Users/nstrain/.pyenv/versions/3.6.9/lib/python3.6/unittest/case.py",
 line 605, in run
     testMethod()
   File "/Users/nstrain/Projects/django/django/test/utils.py", line 370, in
 inner
     return func(*args, **kwargs)
   File "/Users/nstrain/Projects/django/tests/sites_tests/tests.py", line
 162, in test_clear_site_cache
     self.assertEqual(models.SITE_CACHE, {})
   File
 "/Users/nstrain/.pyenv/versions/3.6.9/lib/python3.6/unittest/case.py",
 line 829, in assertEqual
     assertion_func(first, second, msg=msg)
   File
 "/Users/nstrain/.pyenv/versions/3.6.9/lib/python3.6/unittest/case.py",
 line 1121, in assertDictEqual
     self.fail(self._formatMessage(msg, standardMsg))
   File
 "/Users/nstrain/.pyenv/versions/3.6.9/lib/python3.6/unittest/case.py",
 line 670, in fail
     raise self.failureException(msg)
 AssertionError: {2: <Site: example2.com>, 'example2.com': <Site:
 example2.com>} != {}
 - {2: <Site: example2.com>, 'example2.com': <Site: example2.com>}
 + {}

 ----------------------------------------------------------------------
 Ran 13034 tests in 226.191s

 FAILED (failures=1, skipped=987, expected failures=4)
 }}}

 - Tests appear to hang up on this test and error message prints after
 Ctrl+C interrupt.
 - The affected test passes when running
 `sites_tests.tests.SitesFrameworkTests` or just this test by itself.

--
Ticket URL: <https://code.djangoproject.com/ticket/30809>
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/057.fd46133279a000e608fdf0383b5adb07%40djangoproject.com.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #30809: test_clear_site_cache consistently hangs up / fails when running all tests

Django
#30809: test_clear_site_cache consistently hangs up / fails when running all tests
-----------------------------------+--------------------------------------
     Reporter:  Neil Strain        |                    Owner:  nobody
         Type:  Bug                |                   Status:  closed
    Component:  Testing framework  |                  Version:  master
     Severity:  Normal             |               Resolution:  wontfix
     Keywords:  tests, unit tests  |             Triage Stage:  Unreviewed
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+--------------------------------------
Changes (by Neil Strain):

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


Comment:

 This test passes after setting up a new virtual environment with Python
 3.7.4.

--
Ticket URL: <https://code.djangoproject.com/ticket/30809#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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/072.5876bf6e0250d88fab9c390810919008%40djangoproject.com.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #30809: test_clear_site_cache consistently hangs up / fails when running all tests

Django
In reply to this post by Django
#30809: test_clear_site_cache consistently hangs up / fails when running all tests
-----------------------------------+--------------------------------------
     Reporter:  Neil Strain        |                    Owner:  nobody
         Type:  Bug                |                   Status:  closed
    Component:  Testing framework  |                  Version:  master
     Severity:  Normal             |               Resolution:  invalid
     Keywords:  tests, unit tests  |             Triage Stage:  Unreviewed
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+--------------------------------------
Changes (by felixxm):

 * resolution:  wontfix => invalid


--
Ticket URL: <https://code.djangoproject.com/ticket/30809#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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/072.208f7d49c7587deb38cc0bca57267ab2%40djangoproject.com.