()
| 859 | |
| 860 | |
| 861 | def test_subtraction_with_timezone(): |
| 862 | dt = pendulum.datetime(2013, 3, 31, 1, 59, 59, 999999, tz="Europe/Paris") |
| 863 | post = dt.add(microseconds=1) |
| 864 | |
| 865 | assert (post - dt).total_seconds() == 1e-06 |
| 866 | |
| 867 | dt = pendulum.datetime( |
| 868 | 2013, |
| 869 | 10, |
| 870 | 27, |
| 871 | 2, |
| 872 | 59, |
| 873 | 59, |
| 874 | 999999, |
| 875 | tz="Europe/Paris", |
| 876 | fold=0, |
| 877 | ) |
| 878 | post = dt.add(microseconds=1) |
| 879 | |
| 880 | assert (post - dt).total_seconds() == 1e-06 |
nothing calls this directly
no test coverage detected
searching dependent graphs…