Remove unittest2 import

Patch by Jeff Widman; reviewed by brandonwilliams for CASSANDRA-16506
This commit is contained in:
Jeff Widman 2021-03-08 21:39:40 -08:00 committed by Brandon Williams
parent 1f7700cf8b
commit fd9250fb40
1 changed files with 2 additions and 9 deletions

View File

@ -14,22 +14,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
import os
import sys
import logging
import unittest
from os.path import dirname, join, normpath
cqlshlog = logging.getLogger('test_cqlsh')
try:
# a backport of python2.7 unittest features, so we can test against older
# pythons as necessary. python2.7 users who don't care about testing older
# versions need not install.
import unittest2 as unittest
except ImportError:
import unittest
rundir = dirname(__file__)
cqlshdir = normpath(join(rundir, '..', '..', '..', 'bin'))
path_to_cqlsh = normpath(join(cqlshdir, 'cqlsh.py'))