Skip to content

Commit

Permalink
Update gettz property test min_value
Browse files Browse the repository at this point in the history
  • Loading branch information
ffe4 committed Apr 13, 2020
1 parent d168c1e commit df29e69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dateutil/test/property/test_tz_prop.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import datetime
from datetime import datetime, timedelta

import pytest
import six
Expand All @@ -7,16 +7,16 @@

from dateutil import tz as tz

UNIXEPOCH = datetime.fromtimestamp(0)
EPOCHALYPSE = datetime.fromtimestamp(2147483647)
NEGATIVE_EPOCHALYPSE = datetime.fromtimestamp(0) - timedelta(seconds=2147483648)


@pytest.mark.gettz
@pytest.mark.parametrize("gettz_arg", [None, ""])
# TODO: Remove max_value when GH #590 is resolved
@given(
dt=st.datetimes(
min_value=UNIXEPOCH, max_value=EPOCHALYPSE, timezones=st.just(tz.UTC),
min_value=NEGATIVE_EPOCHALYPSE, max_value=EPOCHALYPSE, timezones=st.just(tz.UTC),
)
)
def test_gettz_returns_local(gettz_arg, dt):
Expand Down

0 comments on commit df29e69

Please sign in to comment.