Old style exceptions --> new style for Python 3
This commit is contained in:
@@ -9,8 +9,8 @@ from track.utils import DateTimeJSONEncoder
|
||||
|
||||
class TestDateTimeJSONEncoder(TestCase):
|
||||
def test_datetime_encoding(self):
|
||||
a_naive_datetime = datetime(2012, 05, 01, 07, 27, 10, 20000)
|
||||
a_tz_datetime = datetime(2012, 05, 01, 07, 27, 10, 20000, tzinfo=UTC)
|
||||
a_naive_datetime = datetime(2012, 5, 1, 7, 27, 10, 20000)
|
||||
a_tz_datetime = datetime(2012, 5, 1, 7, 27, 10, 20000, tzinfo=UTC)
|
||||
a_date = a_naive_datetime.date()
|
||||
an_iso_datetime = '2012-05-01T07:27:10.020000+00:00'
|
||||
an_iso_date = '2012-05-01'
|
||||
|
||||
Reference in New Issue
Block a user