aboutsummaryrefslogtreecommitdiff
path: root/tests/test_file.py
diff options
context:
space:
mode:
authorDanny Hermes <daniel.j.hermes@gmail.com>2016-08-10 17:13:50 -0700
committerDanny Hermes <daniel.j.hermes@gmail.com>2016-08-11 08:14:08 -0700
commit0f21a3d6ab2ed39a991e02730c64d7b8efc87c5c (patch)
tree006a8bdec77d0434df11b4c0342fd45ba52c231d /tests/test_file.py
parent5d08ba40a0c6ccb9717102d1fcc3717ec5026203 (diff)
downloadoauth2client-0f21a3d6ab2ed39a991e02730c64d7b8efc87c5c.tar.gz
Drop unittest2 dependency
No longer needed since Python 2.6 support has been dropped.
Diffstat (limited to 'tests/test_file.py')
-rw-r--r--tests/test_file.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_file.py b/tests/test_file.py
index 5b1cfc5..8604344 100644
--- a/tests/test_file.py
+++ b/tests/test_file.py
@@ -24,12 +24,12 @@ import os
import pickle
import stat
import tempfile
+import unittest
import warnings
import mock
import six
from six.moves import http_client
-import unittest2
from oauth2client import _helpers
from oauth2client import client
@@ -48,7 +48,7 @@ _filehandle, FILENAME = tempfile.mkstemp('oauth2client_test.data')
os.close(_filehandle)
-class OAuth2ClientFileTests(unittest2.TestCase):
+class OAuth2ClientFileTests(unittest.TestCase):
def tearDown(self):
try:
@@ -95,7 +95,7 @@ class OAuth2ClientFileTests(unittest2.TestCase):
finally:
os.rmdir(FILENAME)
- @unittest2.skipIf(not hasattr(os, 'symlink'), 'No symlink available')
+ @unittest.skipIf(not hasattr(os, 'symlink'), 'No symlink available')
def test_no_sym_link_credentials(self):
SYMFILENAME = FILENAME + '.sym'
os.symlink(FILENAME, SYMFILENAME)