Opened 13 years ago

Closed 13 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

Description

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/tests.py", 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/runserver.py", 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: https://bugs.gentoo.org/show_bug.cgi?id=371057

Change History (2)

comment:1 by anonymous, 13 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Jannis Leidel, 13 years ago

Resolution: fixed
Status: newclosed

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