Skip to content
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

can't catch throw #37

Open
Nakilon opened this issue Sep 23, 2023 · 1 comment
Open

can't catch throw #37

Nakilon opened this issue Sep 23, 2023 · 1 comment

Comments

@Nakilon
Copy link

Nakilon commented Sep 23, 2023

require "maxitest/autorun"
describe "" do
  around do |test|
    catch(:_){ test.call }
  end
  it do
    throw :_
  end
end
UncaughtThrowError: uncaught throw :_
@grosser
Copy link
Collaborator

grosser commented Sep 25, 2023

FYI reproduction grosser/maxitest#56

yeah this is tricky ... we abused fibers to get around to work and they don't support throw/catch
ideas welcome ... maybe around just needs a rework (ideally live in minitest directly)

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

No branches or pull requests

2 participants