Skip to content

Commit

Permalink
fix bug per review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinf2 committed Jan 2, 2024
1 parent 52ae8b0 commit d461e3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/tests/test_logistic_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,8 @@ def test_compat_one_label(
blor_model = blor.fit(bdf)
assert False, "There should be a java exception"
except Py4JJavaError as e:
assert spark_v34_msg or spark_v33_msg in e.java_exception.getMessage()
java_msg = e.java_exception.getMessage()
assert spark_v34_msg in java_msg or spark_v33_msg in java_msg

return

Expand Down

0 comments on commit d461e3f

Please sign in to comment.