Skip to content

Commit d3afae4

Browse files
authored
Merge pull request #1117 from datastax/remove_unittest2
PYTHON-1289 Removing unittest2 from the dependency list
1 parent 5fdb006 commit d3afae4

File tree

128 files changed

+128
-510
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+128
-510
lines changed

test-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ scales
33
nose
44
mock>1.1
55
ccm>=2.1.2
6-
unittest2
76
pytz
87
sure
98
pure-sasl

tests/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
try:
16-
import unittest2 as unittest
17-
except ImportError:
18-
import unittest # noqa
15+
import unittest
1916
import logging
2017
import sys
2118
import socket

tests/integration/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
from tests import connection_class, EVENT_LOOP_MANAGER
1919
Cluster.connection_class = connection_class
2020

21-
try:
22-
import unittest2 as unittest
23-
except ImportError:
24-
import unittest # noqa
21+
import unittest
2522

2623
from packaging.version import Version
2724
import logging

tests/integration/advanced/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
try:
16-
import unittest2 as unittest
17-
except ImportError:
18-
import unittest # noqa
15+
import unittest
1916

2017
from six.moves.urllib.request import build_opener, Request, HTTPHandler
2118
import re

tests/integration/advanced/graph/fluent/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@
3535
VertexLabel)
3636
from tests.integration import requiredse
3737

38-
try:
39-
import unittest2 as unittest
40-
except ImportError:
41-
import unittest # noqa
38+
import unittest
4239

4340

4441
import ipaddress

tests/integration/advanced/graph/fluent/test_graph.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@
2828
from tests.integration.advanced.graph.fluent import (
2929
BaseExplicitExecutionTest, create_traversal_profiles, check_equality_base)
3030

31-
try:
32-
import unittest2 as unittest
33-
except ImportError:
34-
import unittest # noqa
31+
import unittest
3532

3633

3734
@greaterthanorequaldse60

tests/integration/advanced/graph/test_graph_datatype.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
try:
16-
import unittest2 as unittest
17-
except ImportError:
18-
import unittest # noqa
15+
import unittest
1916

2017
import time
2118
import six

tests/integration/advanced/graph/test_graph_query.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@
2222
import json
2323
import time
2424

25-
try:
26-
import unittest2 as unittest
27-
except ImportError:
28-
import unittest # noqa
25+
import unittest
2926

3027
from cassandra import OperationTimedOut, ConsistencyLevel, InvalidRequest
3128
from cassandra.cluster import EXEC_PROFILE_GRAPH_DEFAULT, NoHostAvailable

tests/integration/advanced/test_adv_metadata.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@
2020
greaterthanorequaldse68, use_single_node,
2121
DSE_VERSION, requiredse, TestCluster)
2222

23-
try:
24-
import unittest2 as unittest
25-
except ImportError:
26-
import unittest # noqa
23+
import unittest
2724

2825
import logging
2926
import time

tests/integration/advanced/test_auth.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
try:
15-
import unittest2 as unittest
16-
except ImportError:
17-
import unittest # noqa
14+
import unittest
1815
import logging
1916
import os
2017
import subprocess

0 commit comments

Comments
 (0)