database.database_connection: Fix _copy_exceptions
commitbbcc4031b0069c2248094b62c0fe2e26356d65ad
authorlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Wed, 22 Jun 2011 21:38:51 +0000 (22 21:38 +0000)
committerlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Wed, 22 Jun 2011 21:38:51 +0000 (22 21:38 +0000)
tree5f184ec4c1b4d02fe77e22733be33280de96c131
parent7136ad2e3934d645fd2f19153c19de82eb6d4bd1
database.database_connection: Fix _copy_exceptions

Under the django backend, Django 1.3 does not have OperationalError
and ProgrammingError anymore (as those are specific to the MySQL
backend). So in this case, let's mock OperationalError and
ProgrammingError with DatabaseError, which is the base DB error
on Django.

This commit fixes autotest_lib.scheduler.monitor_db_functional_test

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5438 592f7852-d20e-0410-864c-8624ca9c26a4
database/database_connection.py