@@ -376,7 +376,9 @@ def test_with_column(df):
376376
377377
378378def test_with_column_invalid_expr (df ):
379- with pytest .raises (TypeError , match = r"Use col\(\) or lit\(\)" ):
379+ with pytest .raises (
380+ TypeError , match = r"Use col\(\)/column\(\) or lit\(\)/literal\(\)"
381+ ):
380382 df .with_column ("c" , "a" )
381383
382384
@@ -412,9 +414,13 @@ def test_with_columns(df):
412414
413415
414416def test_with_columns_invalid_expr (df ):
415- with pytest .raises (TypeError , match = r"Use col\(\) or lit\(\)" ):
417+ with pytest .raises (
418+ TypeError , match = r"Use col\(\)/column\(\) or lit\(\)/literal\(\)"
419+ ):
416420 df .with_columns ("a" )
417- with pytest .raises (TypeError , match = r"Use col\(\) or lit\(\)" ):
421+ with pytest .raises (
422+ TypeError , match = r"Use col\(\)/column\(\) or lit\(\)/literal\(\)"
423+ ):
418424 df .with_columns (c = "a" )
419425
420426
@@ -586,12 +592,16 @@ def test_join_on_invalid_expr():
586592 df = ctx .create_dataframe ([[batch ]], "l" )
587593 df1 = ctx .create_dataframe ([[batch ]], "r" )
588594
589- with pytest .raises (TypeError , match = r"Use col\(\) or lit\(\)" ):
595+ with pytest .raises (
596+ TypeError , match = r"Use col\(\)/column\(\) or lit\(\)/literal\(\)"
597+ ):
590598 df .join_on (df1 , "a" )
591599
592600
593601def test_aggregate_invalid_aggs (df ):
594- with pytest .raises (TypeError , match = r"Use col\(\) or lit\(\)" ):
602+ with pytest .raises (
603+ TypeError , match = r"Use col\(\)/column\(\) or lit\(\)/literal\(\)"
604+ ):
595605 df .aggregate ([], "a" )
596606
597607
0 commit comments