]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
python-common: fix test_datetime_to_str_2 on non-UTC hosts 39113/head
authorSage Weil <sage@newdream.net>
Wed, 27 Jan 2021 21:44:21 +0000 (15:44 -0600)
committerSage Weil <sage@newdream.net>
Wed, 27 Jan 2021 21:44:21 +0000 (15:44 -0600)
commit78aca4db249c409d0cd5a24bfae81e55cf930bc3
treed1cba6423e8417a76d78c807cf6a7bbaeb341ccc
parent3558fd7291855971aa6481a2ade468ad61fbb346
python-common: fix test_datetime_to_str_2 on non-UTC hosts

The old test parsed to a datetime without a tz, which was interpreted as
the local time zone when rendering back to a string.  Specify that it's a
UTC datetime so that behavior is consistent regardless of the test host
timezone.

Signed-off-by: Sage Weil <sage@newdream.net>
src/python-common/ceph/tests/test_datetime.py