Skip to content

Commit 521194c

Browse files
authored
Merge pull request pandas-dev#191 from manahl/xfail-fixes
Remove xfailed test
2 parents 7a2a0db + cbb6063 commit 521194c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

tests/unit/date/test_datetime_to_ms_roundtrip.py

-9
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
11
import pytest
22
import datetime
3-
from datetime import datetime as dt
43
import pytz
54
from arctic.date import mktz, datetime_to_ms, ms_to_datetime
6-
import sys
75

86

97
def assert_roundtrip(tz):
108
ts = datetime.datetime(1982, 7, 1, 16, 5)
119

1210
ts1 = ts.replace(tzinfo=tz)
1311
ts2 = ms_to_datetime(datetime_to_ms(ts1.astimezone(mktz("UTC"))), tz)
14-
#logger.info(ts2.tzinfo)
1512

1613
assert(ts2.hour == ts1.hour)
17-
# assert(ts2.tzinfo == ts1.tzinfo)
1814
assert ts2 == ts1
1915

2016

2117
def get_tz():
22-
#tz = mktz("Europe/London")
23-
#tz = pytz.timezone("Europe/London")
24-
#tz = pytz.timezone("UTC")
2518
tz = pytz.timezone("Europe/London")
2619
tmp = ms_to_datetime(0, tz)
2720
tz = tmp.tzinfo
@@ -45,8 +38,6 @@ def test_pytz_London():
4538
assert_roundtrip(tz)
4639

4740

48-
@pytest.mark.xfail(sys.version_info >= (3,),
49-
reason="known issue with dateutil and python3")
5041
def test_mktz_London():
5142
tz = mktz("Europe/London")
5243
assert_roundtrip(tz)

0 commit comments

Comments
 (0)