Opened 4 years ago

Closed 4 years ago

#16683 closed Bug (fixed)

Make ipv6 tests in regressiontests.admin_scripts.tests.ManageRunserver skippable if ipv6 support isn't present

Reported by: bugs@… Owned by: nobody
Component: Testing framework Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Running the test suite with a python without ipv6 support will result in this:

ERROR: test_runserver_addrport (regressiontests.admin_scripts.tests.ManageRunserver)
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-1.3/work/Django-1.3/tests/regressiontests/admin_scripts/", line 1056, in test_runserver_addrport
    self.cmd.handle(addrport="", use_ipv6=True)
  File "/var/tmp/portage/dev-python/django-1.3/work/Django-1.3/django/core/management/commands/", line 42, in handle
    raise CommandError('Your Python does not support IPv6.')
CommandError: Your Python does not support IPv6.

The test runner should skip these tests if ipv6 isn't available.

FWIW, Gentoo bug with moar output here:

Change History (2)

comment:1 Changed 4 years ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 4 years ago by jezdez

  • Resolution set to fixed
  • Status changed from new to closed

In [17183]:

Fixed #16683 -- Skip the IPv6 runserver tests if the platform doesn't support it.

Note: See TracTickets for help on using tickets.
Back to Top