Skip to content

Commit 173f399

Browse files
tests: add decorators for Future Infer Strings job
1 parent b16d8c1 commit 173f399

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/frame/test_query_eval.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,13 +1400,15 @@ def test_expr_with_column_name_with_backtick(self):
14001400
expected = df[df["a`b"] < 2]
14011401
tm.assert_frame_equal(result, expected)
14021402

1403+
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)")
14031404
def test_expr_with_string_with_backticks(self):
14041405
# GH 59285
14051406
df = DataFrame(("`", "`````", "``````````"), columns=["#backticks"])
14061407
result = df.query("'```' < `#backticks`")
14071408
expected = df["```" < df["#backticks"]]
14081409
tm.assert_frame_equal(result, expected)
14091410

1411+
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)")
14101412
def test_expr_with_string_with_backticked_substring_same_as_column_name(self):
14111413
# GH 59285
14121414
df = DataFrame(("`", "`````", "``````````"), columns=["#backticks"])
@@ -1437,6 +1439,7 @@ def test_expr_with_column_names_with_special_characters(self, col1, col2, expr):
14371439
expected = df[df[col1] < df[col2]]
14381440
tm.assert_frame_equal(result, expected)
14391441

1442+
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)")
14401443
def test_expr_with_no_backticks(self):
14411444
# GH 59285
14421445
df = DataFrame(("aaa", "vvv", "zzz"), columns=["column_name"])
@@ -1480,13 +1483,15 @@ def test_expr_with_quote_opened_before_backtick_and_quote_is_unmatched(self):
14801483
):
14811484
df.query("`column-name` < 'It`s that\\'s \"quote\" #hash")
14821485

1486+
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)")
14831487
def test_expr_with_quote_opened_before_backtick_and_quote_is_matched_at_end(self):
14841488
# GH 59285
14851489
df = DataFrame(("aaa", "vvv", "zzz"), columns=["column-name"])
14861490
result = df.query("`column-name` < 'It`s that\\'s \"quote\" #hash'")
14871491
expected = df[df["column-name"] < 'It`s that\'s "quote" #hash']
14881492
tm.assert_frame_equal(result, expected)
14891493

1494+
@pytest.mark.xfail(using_string_dtype(), reason="TODO(infer_string)")
14901495
def test_expr_with_quote_opened_before_backtick_and_quote_is_matched_in_mid(self):
14911496
# GH 59285
14921497
df = DataFrame(("aaa", "vvv", "zzz"), columns=["column-name"])

0 commit comments

Comments
 (0)