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>
This commit is contained in:
parent
3bdd1d1315
commit
82098f63bc
@ -66,6 +66,5 @@ testresources==2.0.0
|
||||
testscenarios==0.4
|
||||
testtools==2.2.0
|
||||
traceback2==1.4.0
|
||||
unittest2==1.1.0
|
||||
wrapt==1.7.0
|
||||
xattr==0.9.2
|
||||
|
@ -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,7 +46,7 @@ class EventletTestMixin(object):
|
||||
TmpTable.__table__.create(self.engine)
|
||||
self.addCleanup(lambda: TmpTable.__table__.drop(self.engine))
|
||||
|
||||
@unittest2.skipIf(not tests.should_run_eventlet_tests(),
|
||||
@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
|
||||
|
Loading…
Reference in New Issue
Block a user