MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / test_subtraction_aware_naive

Function test_subtraction_aware_naive

tests/datetime/test_diff.py:848–858  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

846
847
848def 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
861def test_subtraction_with_timezone():

Callers

nothing calls this directly

Calls 3

datetimeFunction · 0.85
naiveMethod · 0.80
datetimeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…