Replace pytz

The current usage can be easily replaced by the built-in datetime
module. Also it has been missing from the test requirements and now
is no longer installed by the dependencies.

Change-Id: Idb2ca40fd7ab2334bc97fcf23888a2d326daa1c5
This commit is contained in:
Takashi Kajinami 2024-03-15 12:40:13 +09:00
parent e0005a11f2
commit 08e6662549
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import pytz
import datetime
import sys
from functionaltests.client import base
@ -432,7 +432,7 @@ class OrdersTestCase(base.TestCase):
timestamp = utils.create_timestamp_w_tz_and_offset(**kwargs)
date = timeutils.parse_isotime(timestamp)
date = date.astimezone(pytz.utc)
date = date.astimezone(datetime.timezone.utc)
order = self.barbicanclient.orders.create_key(**order_create_key_data)
order.expiration = timestamp