From 0246fa45d580134401e01ac0ea93f29285291026 Mon Sep 17 00:00:00 2001 From: hugovk Date: Sun, 2 Mar 2014 10:15:47 +0200 Subject: [PATCH] Simplify unix_timestamp() --- test_pylast.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test_pylast.py b/test_pylast.py index 1231567..640e04c 100755 --- a/test_pylast.py +++ b/test_pylast.py @@ -2,7 +2,6 @@ """ Integration (not unit) tests for pylast.py """ -import datetime import time import unittest import yaml # pip install pyyaml @@ -19,7 +18,7 @@ class TestPyLast(unittest.TestCase): secrets = None def unix_timestamp(self): - return int(time.mktime(datetime.datetime.now().timetuple())) + return int(time.time()) def setUp(self): if self.__class__.secrets is None: