aboutsummaryrefslogtreecommitdiff
path: root/tests/test_jwt.py
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2014-08-20 02:41:13 +0900
committerINADA Naoki <inada-n@klab.com>2014-08-20 02:41:13 +0900
commit6f705ce6d99d28baa27b4fa1ebd2e33494f52366 (patch)
treea0eb46105b5b44e560bd87985d495682698aa31f /tests/test_jwt.py
parent217c19100dc73cf5b7e35ce9e4fbecb44654d83a (diff)
downloadoauth2client-6f705ce6d99d28baa27b4fa1ebd2e33494f52366.tar.gz
Use int instead of long.
Diffstat (limited to 'tests/test_jwt.py')
-rw-r--r--tests/test_jwt.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_jwt.py b/tests/test_jwt.py
index 913726e..d3891b8 100644
--- a/tests/test_jwt.py
+++ b/tests/test_jwt.py
@@ -38,8 +38,6 @@ from oauth2client.client import HAS_OPENSSL
from oauth2client.client import HAS_CRYPTO
from oauth2client.file import Storage
-if sys.version > '3':
- long = int
def datafile(filename):
f = open(os.path.join(os.path.dirname(__file__), 'data', filename), 'rb')
@@ -90,7 +88,7 @@ class CryptTests(unittest.TestCase):
private_key = datafile('privatekey.%s' % self.format)
signer = self.signer.from_string(private_key)
audience = 'some_audience_address@testing.gserviceaccount.com'
- now = long(time.time())
+ now = int(time.time())
return crypt.make_signed_jwt(signer, {
'aud': audience,