Skip to content

TST: failures with latest pytz (2014.3) #7137

Closed
@jreback

Description

@jreback

only shows on the numpy 1.9-dev build as this is the only one to pull a current version of pytz
Bug report for pytz

https://bugs.launchpad.net/pytz/+bug/1319939

INSTALLED VERSIONS
------------------
commit: 592a5379dea49f6e88e736a651bf82a00ea4fcc8
python: 2.7.3.final.0
python-bits: 64
OS: Linux
OS-release: 2.6.32-5-amd64
machine: x86_64
processor: 
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8

pandas: None
nose: 1.3.3
Cython: 0.20.1
numpy: 1.9.0.dev-13b32e9
scipy: None
statsmodels: None
IPython: None
sphinx: None
patsy: None
scikits.timeseries: None
dateutil: 2.2
pytz: 2014.3
bottleneck: 0.9.0dev
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
bq: None
apiclient: None
rpy2: None
sqlalchemy: None
pymysql: None
psycopg2: None
======================================================================
FAIL: test_getitem_setitem_datetime_tz (pandas.tests.test_series.TestSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/home/jreback/venv/py2.7_bottleneck/pandas/pandas/tests/test_series.py", line 4594, in test_getitem_setitem_datetime_tz
    assert_series_equal(result, ts)
  File "/mnt/home/jreback/venv/py2.7_bottleneck/pandas/pandas/util/testing.py", line 530, in assert_series_equal
    assert_almost_equal(left.values, right.values, check_less_precise)
  File "testing.pyx", line 58, in pandas._testing.assert_almost_equal (pandas/src/testing.c:2536)
  File "testing.pyx", line 82, in pandas._testing.assert_almost_equal (pandas/src/testing.c:1710)
AssertionError: Length of two iterators not the same: 51 != 50

----------------------------------------------------------------------
Ran 311 tests in 2.951s

FAILED (SKIP=6, failures=1)
(py2.7_bottleneck)jreback@sheep:~/venv/py2.7_bottleneck/pandas$ nosetests pandas//tseries/tests/test_timezones.py 
.................E.....F.......................F..................
======================================================================
ERROR: test_getitem_pydatetime_tz (pandas.tseries.tests.test_timezones.TestTimeZoneSupport)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/home/jreback/venv/py2.7_bottleneck/pandas/pandas/tseries/tests/test_timezones.py", line 648, in test_getitem_pydatetime_tz
    self.assertEqual(ts[time_pandas], ts[time_datetime])
  File "/mnt/home/jreback/venv/py2.7_bottleneck/pandas/pandas/core/series.py", line 475, in __getitem__
    result = self.index.get_value(self, key)
  File "/mnt/home/jreback/venv/py2.7_bottleneck/pandas/pandas/tseries/index.py", line 1263, in get_value
    return self.get_value_maybe_box(series, key)
  File "/mnt/home/jreback/venv/py2.7_bottleneck/pandas/pandas/tseries/index.py", line 1289, in get_value_maybe_box
    values = self._engine.get_value(_values_from_object(series), key)
  File "index.pyx", line 97, in pandas.index.IndexEngine.get_value (pandas/index.c:2987)
  File "index.pyx", line 105, in pandas.index.IndexEngine.get_value (pandas/index.c:2802)
  File "index.pyx", line 515, in pandas.index.DatetimeEngine.get_loc (pandas/index.c:9256)
KeyError: Timestamp('2012-12-24 17:07:00+0100', tz='Europe/Berlin')

======================================================================
FAIL: test_infer_tz (pandas.tseries.tests.test_timezones.TestTimeZoneSupport)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/home/jreback/venv/py2.7_bottleneck/pandas/pandas/tseries/tests/test_timezones.py", line 396, in test_infer_tz
    assert(tools._infer_tzinfo(start, end) is eastern)
AssertionError

======================================================================
FAIL: test_with_tz (pandas.tseries.tests.test_timezones.TestTimeZoneSupport)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/home/jreback/venv/py2.7_bottleneck/pandas/pandas/tseries/tests/test_timezones.py", line 321, in test_with_tz
    self.assertIs(central[0].tz, tz)
  File "/mnt/home/jreback/venv/py2.7_bottleneck/pandas/pandas/util/testing.py", line 94, in assertIs
    assert a is b, "%s: %r is not %r" % (msg.format(a,b), a, b)
AssertionError: : <DstTzInfo 'US/Central' CST-1 day, 18:00:00 STD> is not <DstTzInfo 'US/Central' LMT-1 day, 18:09:00 STD>

----------------------------------------------------------------------
Ran 66 tests in 0.488s

FAILED (errors=1, failures=2)
(py2.7_bottleneck)jreback@sheep:~/venv/py2.7_bottleneck/pandas$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugCompatpandas objects compatability with Numpy or Python functionsTestingpandas testing functions or related to the test suiteTimezonesTimezone data dtype

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions