← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1427165] [NEW] unittest2 deprecated in Django

 

Public bug reported:

https://docs.djangoproject.com/en/1.7/topics/testing/overview/#writing-
tests

Python 2.7 introduced some major changes to the unittest library, adding
some extremely useful features. To ensure that every Django project
could benefit from these new features, Django used to ship with a copy
of Python 2.7’s unittest backported for Python 2.6 compatibility.

Since Django no longer supports Python versions older than 2.7,
django.utils.unittest is deprecated. Simply use unittest.

openstack_dashboard/test/api_tests/rest_util_tests.py

** Affects: horizon
     Importance: Undecided
         Status: Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1427165

Title:
  unittest2 deprecated in Django

Status in OpenStack Dashboard (Horizon):
  Invalid

Bug description:
  https://docs.djangoproject.com/en/1.7/topics/testing/overview
  /#writing-tests

  Python 2.7 introduced some major changes to the unittest library,
  adding some extremely useful features. To ensure that every Django
  project could benefit from these new features, Django used to ship
  with a copy of Python 2.7’s unittest backported for Python 2.6
  compatibility.

  Since Django no longer supports Python versions older than 2.7,
  django.utils.unittest is deprecated. Simply use unittest.

  openstack_dashboard/test/api_tests/rest_util_tests.py

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1427165/+subscriptions


Follow ups

References