diff options
author | Sean McGinnis <sean.mcginnis@gmail.com> | 2020-01-12 02:38:39 -0600 |
---|---|---|
committer | Sean McGinnis <sean.mcginnis@gmail.com> | 2020-01-12 11:36:56 -0600 |
commit | 82098f63bc51971ce87cb240a6ef0f146d3de3ed (patch) | |
tree | 8006dc70a70ee3889029677bf47874292f0ea382 /oslo_db/tests | |
parent | 3bdd1d1315e201cc990cf3fbc56525fa364d5b87 (diff) | |
download | oslo-db-82098f63bc51971ce87cb240a6ef0f146d3de3ed.tar.gz |
Drop unittest2 usage
unittest2 was needed for Python versions <= 2.6, so it has not been
needed for quite some time now. See unittest2 note on:
https://docs.python.org/2.7/library/unittest.html
This drops unittest2 in favor of the standard unittest package.
Change-Id: I40882f14ff2ac121764b432fc745b21ae751e321
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Diffstat (limited to 'oslo_db/tests')
-rw-r--r-- | oslo_db/tests/sqlalchemy/test_async_eventlet.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/oslo_db/tests/sqlalchemy/test_async_eventlet.py b/oslo_db/tests/sqlalchemy/test_async_eventlet.py index 747601b..9e1600a 100644 --- a/oslo_db/tests/sqlalchemy/test_async_eventlet.py +++ b/oslo_db/tests/sqlalchemy/test_async_eventlet.py @@ -16,7 +16,7 @@ """Unit tests for SQLAlchemy and eventlet interaction.""" import logging -import unittest2 +import unittest from oslo_utils import importutils import sqlalchemy as sa @@ -46,8 +46,8 @@ class EventletTestMixin(object): TmpTable.__table__.create(self.engine) self.addCleanup(lambda: TmpTable.__table__.drop(self.engine)) - @unittest2.skipIf(not tests.should_run_eventlet_tests(), - 'eventlet tests disabled unless TEST_EVENTLET=1') + @unittest.skipIf(not tests.should_run_eventlet_tests(), + 'eventlet tests disabled unless TEST_EVENTLET=1') def test_concurrent_transaction(self): # Cause sqlalchemy to log executed SQL statements. Useful to # determine exactly what and when was sent to DB. |