Description of problem: python-vobject test-suite fails under Python 3.7 with FAIL: test_MultiDateBehavior (tests.TestBehaviors) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/vobject-0.9.5/tests.py", line 257, in test_MultiDateBehavior "<RDATE{'VALUE': ['PERIOD']}[(datetime.datetime(1996, 4, 3, 2, 0, tzinfo=tzutc()), datetime.datetime(1996, 4, 3, 4, 0, tzinfo=tzutc())), (datetime.datetime(1996, 4, 4, 1, 0, tzinfo=tzutc()), datetime.timedelta(0, 10800))]>" AssertionError: "<RDA[160 chars]4, 1, 0, tzinfo=tzutc()), datetime.timedelta(seconds=10800))]>" != "<RDA[160 chars]4, 1, 0, tzinfo=tzutc()), datetime.timedelta(0, 10800))]>" - <RDATE{'VALUE': ['PERIOD']}[(datetime.datetime(1996, 4, 3, 2, 0, tzinfo=tzutc()), datetime.datetime(1996, 4, 3, 4, 0, tzinfo=tzutc())), (datetime.datetime(1996, 4, 4, 1, 0, tzinfo=tzutc()), datetime.timedelta(seconds=10800))]> ? ^^^^^^^^ + <RDATE{'VALUE': ['PERIOD']}[(datetime.datetime(1996, 4, 3, 2, 0, tzinfo=tzutc()), datetime.datetime(1996, 4, 3, 4, 0, tzinfo=tzutc())), (datetime.datetime(1996, 4, 4, 1, 0, tzinfo=tzutc()), datetime.timedelta(0, 10800))]> ? ^^^ The test in question is https://github.com/eventable/vobject/blob/master/tests.py#L245 As you can see the problem is in the interpretation of the "PT3H" suffix, it changed from timedelta(0,10800) to timedelta(seconds=10800) which is equivalent. Version-Release number of selected component (if applicable): python-vobject-0.9.5-2.fc29
This is a documented repr change. https://docs.python.org/3.7/whatsnew/3.7.html#changes-in-the-python-api https://bugs.python.org/issue30302
I've proposed https://github.com/eventable/vobject/pull/122 as an upstream fix.