Skip to content

Commit f6c1b94

Browse files
authored
tests: drop use of 'unittest2' (#1564)
1 parent 1c9dcfd commit f6c1b94

12 files changed

+11
-12
lines changed

noxfile.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"pytest-cov",
2828
"webtest",
2929
"coverage",
30-
"unittest2",
3130
"mock",
3231
]
3332

tests/test__auth.py

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

15+
import unittest
1516
import mock
1617

1718
import google.auth.credentials
1819
import google_auth_httplib2
1920
import httplib2
2021
import oauth2client.client
21-
import unittest2 as unittest
2222

2323
from googleapiclient import _auth
2424

tests/test_channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
__author__ = "[email protected] (Joe Gregorio)"
55

6-
import unittest2 as unittest
76
import datetime
7+
import unittest
88

99
from googleapiclient import channel
1010
from googleapiclient import errors

tests/test_discovery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import pickle
3636
import re
3737
import sys
38-
import unittest2 as unittest
38+
import unittest
3939
import urllib
4040

4141
from parameterized import parameterized

tests/test_discovery_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"""Discovery document cache tests."""
1919

2020
import datetime
21-
import unittest2 as unittest
21+
import unittest
2222

2323
import mock
2424

tests/test_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
__author__ = "[email protected] (Ali Afshar)"
2222

2323

24-
import unittest2 as unittest
24+
import unittest
2525
import httplib2
2626

2727

tests/test_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import logging
3232
import mock
3333
import os
34-
import unittest2 as unittest
34+
import unittest
3535
import urllib
3636
import random
3737
import socket

tests/test_json_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import json
2727
import pkg_resources
2828
import platform
29-
import unittest2 as unittest
29+
import unittest
3030
import urllib
3131

3232
import googleapiclient.model

tests/test_mocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
import httplib2
2626
import os
27-
import unittest2 as unittest
27+
import unittest
2828

2929
from googleapiclient.errors import HttpError
3030
from googleapiclient.errors import UnexpectedBodyError

tests/test_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
__author__ = "[email protected] (Joe Gregorio)"
2525

26-
import unittest2 as unittest
26+
import unittest
2727

2828
from googleapiclient.model import BaseModel
2929
from googleapiclient.model import makepatch

tests/test_protobuf_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
__author__ = "[email protected] (Matt McDonald)"
2424

25-
import unittest2 as unittest
25+
import unittest
2626
import httplib2
2727

2828
from googleapiclient.model import ProtocolBufferModel

tests/test_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import json
2121
import os
22-
import unittest2 as unittest
22+
import unittest
2323

2424
from googleapiclient.schema import Schemas
2525

0 commit comments

Comments
 (0)