Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New errors in nosetests #1396

Closed
gerigk opened this issue Jun 5, 2012 · 1 comment
Closed

New errors in nosetests #1396

gerigk opened this issue Jun 5, 2012 · 1 comment
Labels
Bug Testing pandas testing functions or related to the test suite
Milestone

Comments

@gerigk
Copy link

gerigk commented Jun 5, 2012

ERROR: test_index_astype_datetime64 (pandas.tseries.tests.test_timeseries.TestTimeSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/hadoop/pandas/pandas/tseries/tests/test_timeseries.py", line 402, in test_index_astype_datetime64
    casted = idx.astype(np.dtype('M8[D]'))
  File "/home/hadoop/pandas/pandas/core/index.py", line 126, in astype
    return Index(self.values.astype(dtype), name=self.name,
TypeError: Cannot cast datetime.datetime object from metadata [us] to [D] according to the rule 'same_kind'

======================================================================
ERROR: test_operators_date (pandas.tests.test_series.TestSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/hadoop/pandas/pandas/tests/test_series.py", line 1485, in test_operators_date
    result = self.objSeries + timedelta(1)
  File "/home/hadoop/pandas/pandas/core/series.py", line 85, in wrapper
    return Series(na_op(self.values, other),
  File "/home/hadoop/pandas/pandas/core/series.py", line 61, in na_op
    result[mask] = op(x[mask], y)
TypeError: unsupported operand type(s) for +: 'long' and 'datetime.timedelta'

======================================================================
FAIL: test_from_json_to_json (pandas.tests.test_series.TestSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/hadoop/pandas/pandas/tests/test_series.py", line 377, in test_from_json_to_json
    _check_all_orients(objSeries)
  File "/home/hadoop/pandas/pandas/tests/test_series.py", line 357, in _check_all_orients
    _check_orient(series, "columns", dtype=dtype)
  File "/home/hadoop/pandas/pandas/tests/test_series.py", line 350, in _check_orient
    assert_series_equal(series, unser)
  File "/home/hadoop/pandas/pandas/util/testing.py", line 126, in assert_series_equal
    assert_almost_equal(left.values, right.values)
  File "/home/hadoop/pandas/pandas/util/testing.py", line 87, in assert_almost_equal
    assert_almost_equal(a[i], b[i])
  File "/home/hadoop/pandas/pandas/util/testing.py", line 77, in assert_almost_equal
    assert a == b, (a, b)
AssertionError: ('958435200000000000', 9.584352e+17)

----------------------------------------------------------------------
Ran 2047 tests in 52.125s

@wesm
Copy link
Member

wesm commented Jun 7, 2012

Got this sorted out, passing cleanly on both NumPy 1.6 and 1.7 again

yarikoptic added a commit to neurodebian/pandas that referenced this issue Jun 21, 2012
* commit 'v0.8.0b1-137-gf733f10': (119 commits)
  ENH: make any/all conform to sum/mean interface. Fixed bug in copy keyword in BlockManager.get_numeric_data pandas-dev#1416
  TST: mixed case
  ENH: DataFrame any all pandas-dev#1416
  BLD: ujson fix compiler warnings
  BUG: ujson memory alignment fixes
  BUG: ujson don't compare pointers outside their allocated blocks
  ujson check for malloc success
  Add dependency on pytz
  ENH: check the periods argument is a number pandas-dev#1438
  BUG: fix DatetimeIndex.groupby bug close pandas-dev#1430
  ENH: set_xlim using str for irregular index pandas-dev#1427
  BUG: isin method buggy on SparseSeries pandas-dev#1412
  BUG: pass on limit argument in upsampling, close pandas-dev#1424
  ENH: implement comparison methods on Factor, close pandas-dev#1405
  BUG: fix numpy 1.6 erroneous type-casting bug causing NumPy 1.7 issues, close pandas-dev#1396
  BUG: fix Series .ix bug and test failure described in pandas-dev#1396
  DOC: Indicate that to_csv and from_csv methods can handle string file path and file-like objects for io.
  BUG: fix a number of negative ordinal bugs, check for out-of-range quarters
  BUG: preserve name in PeriodIndex.to_timestamp
  BUG: fix asfreq bug on PeriodIndex
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Testing pandas testing functions or related to the test suite
Projects
None yet
Development

No branches or pull requests

2 participants