iso8601.is8601.Utc No Longer Exists

iso8601.UTC is correct datetime UTC field object.
iso8601 >= 0.1.12 includes only iso8601.UTC for python3
while both UTC and Utc() for python2. Less then 0.1.12
included both UTC and Utc() for both python2/3.

Change-Id: I9b2a8ba5a5ab44c95e68d67e0e3ee8e2c0024b03
Closes-Bug: #1715486
This commit is contained in:
Sampath Priyankara 2017-09-07 10:25:30 +09:00
parent 93556d3116
commit d9c87bba0a
1 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ class TestBoolean(TestField):
class TestDateTime(TestField):
def setUp(self):
super(TestDateTime, self).setUp()
self.dt = datetime.datetime(2016, 11, 5, tzinfo=iso8601.iso8601.Utc())
self.dt = datetime.datetime(2016, 11, 5, tzinfo=iso8601.UTC)
self.field = fields.DateTimeField()
self.coerce_good_values = [(self.dt, self.dt),
(utils.isotime(self.dt), self.dt)]
@ -224,4 +224,4 @@ class TestDateTime(TestField):
'2016-11-05T18:00:00Z',
self.field.stringify(
datetime.datetime(2016, 11, 5, 18, 0, 0,
tzinfo=iso8601.iso8601.Utc())))
tzinfo=iso8601.iso8601.UTC)))