summaryrefslogtreecommitdiff
path: root/Windows/dateutil/test/property/test_isoparse_prop.py
diff options
context:
space:
mode:
Diffstat (limited to 'Windows/dateutil/test/property/test_isoparse_prop.py')
-rw-r--r--Windows/dateutil/test/property/test_isoparse_prop.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/Windows/dateutil/test/property/test_isoparse_prop.py b/Windows/dateutil/test/property/test_isoparse_prop.py
deleted file mode 100644
index c6a4b82a..00000000
--- a/Windows/dateutil/test/property/test_isoparse_prop.py
+++ /dev/null
@@ -1,27 +0,0 @@
-from hypothesis import given, assume
-from hypothesis import strategies as st
-
-from dateutil import tz
-from dateutil.parser import isoparse
-
-import pytest
-
-# Strategies
-TIME_ZONE_STRATEGY = st.sampled_from([None, tz.tzutc()] +
- [tz.gettz(zname) for zname in ('US/Eastern', 'US/Pacific',
- 'Australia/Sydney', 'Europe/London')])
-ASCII_STRATEGY = st.characters(max_codepoint=127)
-
-
-@pytest.mark.isoparser
-@given(dt=st.datetimes(timezones=TIME_ZONE_STRATEGY), sep=ASCII_STRATEGY)
-def test_timespec_auto(dt, sep):
- if dt.tzinfo is not None:
- # Assume offset has no sub-second components
- assume(dt.utcoffset().total_seconds() % 60 == 0)
-
- sep = str(sep) # Python 2.7 requires bytes
- dtstr = dt.isoformat(sep=sep)
- dt_rt = isoparse(dtstr)
-
- assert dt_rt == dt