TST: check internal Categorical by sinhrks · Pull Request #13249 · pandas-dev/pandas (original) (raw)
@@ -685,8 +687,8 @@ def _check_types(l, r, obj='Index'): |
---|
assert_class_equal(left, right, exact=exact, obj=obj) |
assert_attr_equal('dtype', l, r, obj=obj) |
# allow string-like to have different inferred_types |
if l.inferred_type in ('string', 'unicode'): |
assertIn(r.inferred_type, ('string', 'unicode')) |
if l.inferred_type in ('string', 'unicode', 'mixed'): |