Skip to content

TestHDFStore: test_select_dtypes fails on py3.4 #6247

@ghost

Description

Caught while testing 185b3f1 on Win/x86_64 with PY3.4.0/64:

======================================================================
ERROR: test_select_dtypes (pandas.io.tests.test_pytables.TestHDFStore)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python34-AMD64\lib\unittest\case.py", line 57, in testPartExecutor
    yield
  File "c:\python34-AMD64\lib\unittest\case.py", line 574, in run
    testMethod()
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\io\tests\test_pytables.py", line 2939, in test_select_dtypes
    result = store.select('df', Term('boolv == %s' % str(v)), columns = ['A','boolv'])
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\io\pytables.py", line 664, in select
    auto_close=auto_close).get_values()
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\io\pytables.py", line 1338, in get_values
    results = self.func(self.start, self.stop)
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\io\pytables.py", line 653, in func
    columns=columns, **kwargs)
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\io\pytables.py", line 3788, in read
    if not self.read_axes(where=where, **kwargs):
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\io\pytables.py", line 3047, in read_axes
    self.selection = Selection(self, where=where, **kwargs)
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\io\pytables.py", line 4263, in __init__
    self.terms = self.generate(where)
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\io\pytables.py", line 4276, in generate
    return Expr(where, queryables=q, encoding=self.table.encoding)
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\computation\pytables.py", line 518, in __init__
    self.terms = self.parse()
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\computation\expr.py", line 781, in parse
    return self._visitor.visit(self.expr)
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\computation\expr.py", line 449, in visit
    return visitor(node, **kwargs)
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\computation\expr.py", line 455, in visit_Module
    return self.visit(expr, **kwargs)
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\computation\expr.py", line 449, in visit
    return visitor(node, **kwargs)
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\computation\expr.py", line 458, in visit_Expr
    return self.visit(node.value, **kwargs)
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\computation\expr.py", line 449, in visit
    return visitor(node, **kwargs)
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\computation\expr.py", line 689, in visit_Compare
    return self.visit(binop)
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\computation\expr.py", line 449, in visit
    return visitor(node, **kwargs)
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\computation\expr.py", line 536, in visit_BinOp
    op, op_class, left, right = self._possibly_transform_eq_ne(node)
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\computation\expr.py", line 494, in _possibly_transform_eq_ne
    right = self.visit(node.right, side='right')
  File "C:\workspace\pandas_tests\BITS\64\PYTHONVER\34\pandas\computation\expr.py", line 448, in visit
    visitor = getattr(self, method)
AttributeError: 'ExprVisitor' object has no attribute 'visit_NameConstant'

xref #6243

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions