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

source-academy / py-slang / 28991235533
78%

Build:
DEFAULT BRANCH: main
Ran 09 Jul 2026 03:12AM UTC
Jobs 1
Files 87
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

09 Jul 2026 03:08AM UTC coverage: 77.396% (-0.005%) from 77.401%
28991235533

push

github

web-flow
CSE machine: allocate local variables as unassigned at CALL time (#235)

* CSE machine: allocate local variables as unassigned at CALL time (#223)

Locals were previously bound lazily whenever their assignment happened
to execute, so a read that races ahead of its binding (temporal dead
zone) fell through the empty frame to an unrelated same-named binding
further up the environment chain instead of raising an error.

createEnvironment now preallocates every local of a function frame
(assignment/def/for targets, minus params) as an UNASSIGNED sentinel
at CALL time. pyGetVariable/pyGetNonlocalVariable now check for that
sentinel and raise UnboundLocalError (own frame) or
FreeVariableUnboundError (enclosing frame) accordingly, matching
CPython's behavior.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Use explicit else in pyGetVariable's unassigned-value branch

handleRuntimeError always throws (return type never), so this was not
a functional bug, but the missing else made the control flow read as
if both errors could fire. Addresses gemini-code-assist review comment
on PR #235.

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

2608 of 3650 branches covered (71.45%)

Branch coverage included in aggregate %.

20 of 20 new or added lines in 3 files covered. (100.0%)

6120 of 7627 relevant lines covered (80.24%)

14081.4 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28991235533.1 09 Jul 2026 03:12AM UTC 87
77.4
GitHub Action Run
Source Files on build 28991235533
  • Tree
  • List 87
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28991235533
  • 225478dd on github
  • Prev Build on main (#28924649834)
  • Next Build on main (#29009177278)
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