summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorBoris Pavlovic <boris@pavlovic.me>2013-05-22 16:57:47 +0400
committerBoris Pavlovic <boris@pavlovic.me>2013-05-24 14:57:27 +0400
commit7238438ef218d79a31acb07ea004fca8c2e78798 (patch)
tree6424423d6c16a18004601ad62bfc87f6a97b72f9 /nova/utils.py
parent05be719ec76adf60a151b56d695c59fd832cb22b (diff)
downloadnova-7238438ef218d79a31acb07ea004fca8c2e78798.tar.gz
nova-7238438ef218d79a31acb07ea004fca8c2e78798.tar.xz
nova-7238438ef218d79a31acb07ea004fca8c2e78798.zip
Fix tests for sqlalchemy utils
This fix tests to be able to run it with postgresql and mysql. Some tests should be run only on sqlite Method create_shadow_tables raises different exception in different backends (when we try to create duplicate table): In postgresql it is ProgrammingError In sqlite and mysql it is OperationalError So create new Exception that will be raised in both cases. bp db-common-migration-and-utils Change-Id: I11be23106bc01bd3c72dad30edfb31a17177bb34
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions