bpo-36025: Fix PyDate_FromTimestamp API (GH-11922)
In the process of converting the date.fromtimestamp function to use argument clinic in GH-8535, the C API for PyDate_FromTimestamp was inadvertently changed to expect a timestamp object rather than an argument tuple. This PR fixes this backwards-incompatible change by adding a new wrapper function for the C API function that unwraps the argument tuple and passes it to the underlying function. This PR also adds tests for both PyDate_FromTimestamp and PyDateTime_FromTimestamp to prevent any further regressions.
P
Paul Ganssle committed
4d8c8c0ad6163c24136d3419eb04f310b31f7e64
Parent: 5c403b2
Committed by Berker Peksag <berker.peksag@gmail.com>
on 4/27/2019, 7:39:40 PM