Skip to content

Commit

Permalink
Using unittest2 in place of unittest for Python 2.6 compatibility in …
Browse files Browse the repository at this point in the history
…testing.
  • Loading branch information
pferate committed Mar 5, 2015
1 parent fbae355 commit fde7488
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/test_channel.py
Expand Up @@ -3,7 +3,7 @@

__author__ = 'jcgregorio@google.com (Joe Gregorio)'

import unittest
import unittest2 as unittest
import datetime

from googleapiclient import channel
Expand Down
2 changes: 1 addition & 1 deletion tests/test_discovery.py
Expand Up @@ -36,7 +36,7 @@
import os
import pickle
import sys
import unittest
import unittest2 as unittest

from googleapiclient.discovery import _fix_up_media_upload
from googleapiclient.discovery import _fix_up_method_description
Expand Down
2 changes: 1 addition & 1 deletion tests/test_errors.py
Expand Up @@ -21,7 +21,7 @@
__author__ = 'afshar@google.com (Ali Afshar)'


import unittest
import unittest2 as unittest
import httplib2


Expand Down
2 changes: 1 addition & 1 deletion tests/test_http.py
Expand Up @@ -32,7 +32,7 @@
import httplib2
import logging
import os
import unittest
import unittest2 as unittest
import random
import time

Expand Down
2 changes: 1 addition & 1 deletion tests/test_json_model.py
Expand Up @@ -26,7 +26,7 @@
import copy
import json
import os
import unittest
import unittest2 as unittest
import httplib2
import googleapiclient.model

Expand Down
2 changes: 1 addition & 1 deletion tests/test_mocks.py
Expand Up @@ -24,7 +24,7 @@

import httplib2
import os
import unittest
import unittest2 as unittest

from googleapiclient.errors import HttpError
from googleapiclient.errors import UnexpectedBodyError
Expand Down
2 changes: 1 addition & 1 deletion tests/test_model.py
Expand Up @@ -23,7 +23,7 @@

__author__ = 'jcgregorio@google.com (Joe Gregorio)'

import unittest
import unittest2 as unittest

from googleapiclient.model import BaseModel
from googleapiclient.model import makepatch
Expand Down
2 changes: 1 addition & 1 deletion tests/test_protobuf_model.py
Expand Up @@ -22,7 +22,7 @@

__author__ = 'mmcdonald@google.com (Matt McDonald)'

import unittest
import unittest2 as unittest
import httplib2
import googleapiclient.model

Expand Down
2 changes: 1 addition & 1 deletion tests/test_schema.py
Expand Up @@ -19,7 +19,7 @@

import json
import os
import unittest
import unittest2 as unittest

from googleapiclient.schema import Schemas

Expand Down
1 change: 1 addition & 0 deletions tox.ini
Expand Up @@ -9,6 +9,7 @@ deps = keyring
django
webtest
nose
unittest2
setenv = PYTHONPATH=../google_appengine

[testenv:py26]
Expand Down

0 comments on commit fde7488

Please sign in to comment.