Skip to content

Conversation

@dpgeorge
Copy link
Member

Summary

This test was factored out from random_extra.py back in commit 6572029, and the skip logic copied from that file. But the skip logic needs to test that the random and uniform functions exist, not randint.

This commit fixes that skip logic.

Testing

Tested on RPI_PICO2_W in RISCV mode, the test now correctly skips.

@dpgeorge dpgeorge added the tests Relates to tests/ directory in source label May 28, 2025
@codecov
Copy link

codecov bot commented May 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.54%. Comparing base (9bde125) to head (e4d556b).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #17378   +/-   ##
=======================================
  Coverage   98.54%   98.54%           
=======================================
  Files         169      169           
  Lines       21941    21941           
=======================================
  Hits        21621    21621           
  Misses        320      320           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dpgeorge dpgeorge requested a review from projectgus May 29, 2025 04:34
This test was factored out from `random_extra.py` back in commit
6572029, and the skip logic copied from
that file.  But the skip logic needs to test that the `random` and
`uniform` functions exist, not `randint`.

This commit fixes that skip logic.

Signed-off-by: Damien George <damien@micropython.org>
@dpgeorge dpgeorge force-pushed the tests-extmod-random-extra-float-proper-skip branch from fba45e9 to e4d556b Compare June 12, 2025 11:46
@dpgeorge dpgeorge merged commit e4d556b into micropython:master Jun 12, 2025
26 checks passed
@dpgeorge dpgeorge deleted the tests-extmod-random-extra-float-proper-skip branch June 12, 2025 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Relates to tests/ directory in source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant