** No longer affects: oslo.db

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

Title:
  Using range(value) to create list of integers

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  File : nova/tests/unit/api/openstack/test_common.py 
  line : 46
      def setUp(self):
          """Run before each test."""
          super(LimiterTest, self).setUp()
          self.tiny = range(1)
          self.small = range(10)
          self.medium = range(1000)
          self.large = range(10000)

  File : nova/tests/unit/db/test_migrations.py
  line :172
          havana_placeholders = range(217, 227)
          icehouse_placeholders = range(235, 244)
          juno_placeholders = range(255, 265)
          kilo_placeholders = range(281, 291)
          liberty_placeholders = range(303, 313)

  In the above code, lists have been created using range() function,
  However, It works fine if used in python2.7 but it will complain when
  used with python3.4 because the range() function will not return a 
  list when used in python3.4.
  Therefore all the above list creation must be wrapped in list() function
  or list comprehension can be used to support both python versions.

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to