aboutsummaryrefslogtreecommitdiff
path: root/tests/test_pid.py
diff options
context:
space:
mode:
authorJavi Merino <javi.merino@arm.com>2016-03-08 11:55:23 +0000
committerJavi Merino <javi.merino@arm.com>2016-03-08 11:55:23 +0000
commitfb2127422317ed2ed5dbc164be88dfc2cb243edd (patch)
tree18895412ee0d809124ed84a5101e3737f0fd4ad9 /tests/test_pid.py
parent541c887c9db1e92fc6dc3cc159ed3cb4a3f7a6a0 (diff)
downloadtrappy-fb2127422317ed2ed5dbc164be88dfc2cb243edd.tar.gz
tests: fix test_filter_prev_values expected result
pandas 0.17.1 has a more accurate assert_series_equal() that makes test_filter_prev_values fail because the index name is different: ====================================================================== FAIL: Trigger works with a filter that depends on previous values of the same pivot ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/javi/src/trappy/tests/test_stats.py", line 227, in test_filter_prev_values assert_series_equal(expected, trigger.generate("blank")) File "/usr/lib/python2.7/dist-packages/pandas/util/testing.py", line 924, in assert_series_equal obj='{0}.index'.format(obj)) File "/usr/lib/python2.7/dist-packages/pandas/util/testing.py", line 694, in assert_index_equal assert_attr_equal('names', left, right, obj=obj) File "/usr/lib/python2.7/dist-packages/pandas/util/testing.py", line 729, in assert_attr_equal left_attr, right_attr) File "/usr/lib/python2.7/dist-packages/pandas/util/testing.py", line 819, in raise_assert_detail raise AssertionError(msg) AssertionError: Series.index are different Attribute "names" are different [left]: [u'Time'] [right]: [None] ---------------------------------------------------------------------- The series that trigger generates don't have a name for the index. Remove the named index from the expected output so that the test passes again.
Diffstat (limited to 'tests/test_pid.py')
0 files changed, 0 insertions, 0 deletions