Go to file
Victor Stinner b9a4bb16ba Fix test_migrations on Python 3
migrate.versioning.api.VerNum() conversion to integer doesn't work in
all cases. Cast explicitly to int in WalkVersionsMixin.walk_versions()
to fix this issue.

Modify unit tests to use VerNum objects instead of using directly
integers. The bug was not seen in tests because tests used int numbers.

Example of error:

    Traceback (most recent call last):
      ...
      File "oslo_db/sqlalchemy/test_migrations.py", line 189, in walk_versions
        versions = range(self.INIT_VERSION + 1, self.REPOSITORY.latest + 1)
    TypeError: 'VerNum' object cannot be interpreted as an integer

This bug impact for example glance.tests.unit.test_migrations of the
Glance project.

Change-Id: I043a66268b957b97f2e8f652c0ee8aec3a00e8dd
2015-09-04 08:42:55 +00:00
2015-09-04 08:42:55 +00:00
2015-05-05 19:39:49 +00:00
2014-04-18 11:33:16 +03:00
2014-09-04 16:27:00 -04:00
2014-04-30 16:55:51 +02:00
2014-04-18 11:33:16 +03:00
2014-04-18 11:33:16 +03:00
2014-09-01 11:40:08 +02:00
2014-04-18 11:33:16 +03:00
2014-04-18 11:33:16 +03:00
2015-06-21 20:54:10 +00:00
2015-07-15 01:36:31 +00:00

oslo.db

Latest Version

Downloads

The oslo db (database) handling library, it provides database connectivity to different database backends and various other helper utils.

Description
RETIRED, further work has moved to Debian project infrastructure
Readme 1.5 MiB