Based off #4212, includes the commits from @Cheukting
The observation is that I believe these tests are trying to verify the Rust behaviour (via the datetime bindings in PyO3) matches the Python behaviour.
So if the call throws, it doesn't matter, as long as the Python call would also throw.
Based off #4212, includes the commits from @Cheukting
The observation is that I believe these tests are trying to verify the Rust behaviour (via the
datetime
bindings in PyO3) matches the Python behaviour.So if the call throws, it doesn't matter, as long as the Python call would also throw.
Closes #4212 Closes #3922