Skip to content

tests/extmod/asyncio_iterator_event.py: Use format instead of f-string. #17550

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dpgeorge
Copy link
Member

Summary

Some targets don't have f-strings enabled, so try not to use them in tests. Rather use str.format which is more portable.

Testing

Tested on SEEED_XIAO_SAMD21. Before this change the test would fail with SyntaxError. Now it skips.

@dpgeorge dpgeorge added the tests Relates to tests/ directory in source label Jun 23, 2025
Some targets don't have f-strings enabled.

Signed-off-by: Damien George <[email protected]>
@dpgeorge dpgeorge force-pushed the tests-extmod-asyncio-iterator-event-remove-fstring branch from 8f04901 to a28aa32 Compare June 23, 2025 03:17
Copy link

codecov bot commented Jun 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.56%. Comparing base (35f15cf) to head (a28aa32).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #17550   +/-   ##
=======================================
  Coverage   98.56%   98.56%           
=======================================
  Files         169      169           
  Lines       21950    21950           
=======================================
  Hits        21636    21636           
  Misses        314      314           

☔ 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.

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