Skip to content

Conversation

@hadley
Copy link
Member

@hadley hadley commented Aug 8, 2025

A few problems here:

  • describe() forgot to substitute() code.
  • StopReporter was called at the end of every (sub)test instead of just once. This also reqiured changes to local_interactive_reporter()
  • StopReporter() doesn't need the call in its error
  • In test_code() needs to accumulate expectations across its children

Fixes #2063. Fixes #2188.

hadley added 6 commits August 8, 2025 10:21
A few problems here:

* `describe()` forgot to `substitute()` code.
* `StopReporter` was called at the end of every (sub)test instead of just once. This also reqiured changes to `local_interactive_reporter()`
* `StopReporter()` doesn't need the call in its error
* In `test_code()` needs to accumulate expectations across its children

Fixes #2063. Fixes #2188.
@hadley hadley merged commit 2e911f4 into main Aug 8, 2025
13 checks passed
@hadley hadley deleted the subtests branch August 8, 2025 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nested subtests aren't working right Add support for subtest?

2 participants