JoshRosen opened a new pull request #27754: [SPARK-31003][TESTS] Fix incorrect 
uses of assume() in tests
URL: https://github.com/apache/spark/pull/27754
 
 
   ### What changes were proposed in this pull request?
   
   This patch fixes several incorrect uses of `assume()` in our tests.
   
   If a call to `assume(condition)` fails then it will cause the test to be 
marked as skipped instead of failed: this feature allows test cases to be 
skipped if certain prerequisites are missing. For example, we use this to skip 
certain tests when running on Windows (or when Python dependencies are 
unavailable).
   
   In contrast, `assert(condition)` will fail the test if the condition doesn't 
hold.
   
   If `assume()` is accidentally substituted for `assert()`then the resulting 
test will be marked as skipped in cases where it should have failed, 
undermining the purpose of the test.
   
   This patch fixes several such cases, replacing certain `assume()` calls with 
`assert()`.
   
   Credit to @ahirreddy for spotting this problem.
   
   ### Does this PR introduce any user-facing change?
   
   No.
   
   
   ### How was this patch tested?
   
   Existing tests.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to