• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pybricks / pybricksdev / 17601691790
54%

Build:
DEFAULT BRANCH: master
Ran 10 Sep 2025 02:53AM UTC
Jobs 1
Files 32
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Sep 2025 02:50AM UTC coverage: 54.325% (-0.05%) from 54.371%
17601691790

push

github

dlech
connections.pybricks: fix leaking tasks if race_disconnect() is canceled

If the `race_disconnect()` method is canceled while waiting for either
of the tasks, there is nothing that ever awaits the tasks, so we get
errors like:

    2025-09-09 21:22:25,946: ERROR: asyncio: Task was destroyed but it is pending!
    task: <Task pending name='race_disconnect: Queue.get' coro=<Queue.get() done, defined at python\3.13.0\Lib\asyncio\queues.py:172> wait_for=<Future cancelled>>
    2025-09-09 21:22:25,947: ERROR: asyncio: Task was destroyed but it is pending!
    task: <Task pending name='Task-21' coro=<Event.wait() done, defined at python\3.13.0\Lib\asyncio\locks.py:200> wait_for=<Future pending cb=[Task.task_wakeup()]>>

To avoid this, cancel the tasks if anything goes wrong while waiting.

63 of 241 branches covered (26.14%)

Branch coverage included in aggregate %.

1978 of 3516 relevant lines covered (56.26%)

0.56 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
102
38.96
-0.22% connections/pybricks.py
Jobs
ID Job ID Ran Files Coverage
1 17601691790.1 10 Sep 2025 02:53AM UTC 32
54.33
GitHub Action Run
Source Files on build 17601691790
  • Tree
  • List 32
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #17601691790
  • bb9b7181 on github
  • Prev Build on v2.0.1 (#16895181120)
  • Next Build on master (#17632086958)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc