bpo-36025: Restore original function API for PyDate_FromTimestamp by pganssle · Pull Request #11922 · python/cpython (original) (raw)
Per PyO3/pyo3#352, I believe we've broken the C API for PyDateTimeAPI->Date_FromTimestamp
. As a test (and to make sure we don't do it again), I've developed these tests. They are currently passing on 3.7 and they should be failing on master / Python 3.8 since we're passing a tuple
to a function that strictly takes int
or float
.
Once I verify that these tests are indeed failing on CI, (they are anomalously passing in my local directory against master), I will also fix the underlying problem.
We don't need a news item for this, as it fixes a regression that was only ever released in alpha.