()
| 846 | |
| 847 | |
| 848 | def test_subtraction_aware_naive(): |
| 849 | dt = pendulum.datetime(2016, 7, 5, 12, 32, 25, 0) |
| 850 | future_dt = datetime(2016, 7, 5, 13, 32, 25, 0) |
| 851 | |
| 852 | with pytest.raises(TypeError): |
| 853 | future_dt - dt |
| 854 | |
| 855 | future_dt = pendulum.naive(2016, 7, 5, 13, 32, 25, 0) |
| 856 | |
| 857 | with pytest.raises(TypeError): |
| 858 | future_dt - dt |
| 859 | |
| 860 | |
| 861 | def test_subtraction_with_timezone(): |