The Samba-Bugzilla – Bug 13835
[4.10 backport needed]subunit/run.py: make iso8601 UTC usage python 2/3 compatible
Last modified: 2019-03-12 21:47:56 UTC
Created attachment 14924 [details]
subunit/run.py: make iso8601 UTC usage python 2/3 compatible
from iso8601.iso8601 import Utc
if sys.version_info >= (3, 2, 0):
UTC = datetime.timezone.utc
UTC = Utc()
The class `Utc` is only available for python < 3.2.0, which implies `subunit/run.py` will not work with python 3.2.0+.
Use `UTC` instance instead, which is python 2/3 compatible.
The attached patch has already been applied to master as 02c7b8c03d4970421a5170e44c57cbc3cda82827, backport needed.