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

Don't extend exception #1106

Merged
merged 1 commit into from Oct 8, 2013
Merged

Don't extend exception #1106

merged 1 commit into from Oct 8, 2013

Conversation

ghost
Copy link

@ghost ghost commented Oct 8, 2013

We now write directly to execution_result. Previously we'd
overload the actual exception object with this flag.

Apart from reducing complexity, this fixes a bug with
frozen error objects that failed to extend for obvious
reasons.

Fixes #1103

We now write directly to execution_result. Previously we'd
overload the actual exception object with this flag.

Apart from reducing complexity, this fixes a bug with
frozen error objects that failed to extend for obvious
reasons.

Fixes #1103
@ghost
Copy link
Author

ghost commented Oct 8, 2013

Haven't yet been able to reproduce the jruby-19mode failure locally, running script/test_all against jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on OpenJDK 64-Bit Server VM 1.7.0_25-b30 [linux-amd64].

@JonRowe
Copy link
Member

JonRowe commented Oct 8, 2013

Restarted JRuby travis build (cause it's most likely a Heisenbug)

@ghost
Copy link
Author

ghost commented Oct 8, 2013

Yep, Heisenbug.

@xaviershay
Copy link
Member

Seems good to me.

@myronmarston
Copy link
Member

LGTM to me as well. It needs a changelog entry, and this needs to be cherry-picked over to 2-99-maintenance and master as well (this is targetting 2-14-maintenance).

JonRowe added a commit that referenced this pull request Oct 8, 2013
@JonRowe JonRowe merged commit 936a0f7 into rspec:2-14-maintenance Oct 8, 2013
JonRowe added a commit that referenced this pull request Oct 8, 2013
JonRowe added a commit that referenced this pull request Oct 8, 2013
Don't extend exception

Conflicts:
	Changelog.md
	lib/rspec/core/pending.rb
@JonRowe
Copy link
Member

JonRowe commented Oct 8, 2013

Thanks @lgierth, I added a changelog entry, and I've picked this across to 2-99 and master.

JonRowe added a commit that referenced this pull request Oct 8, 2013
Don't extend exception

Conflicts:
	Changelog.md
	lib/rspec/core/pending.rb
@ghost ghost deleted the dont-extend-exception branch October 8, 2013 22:45
@ghost
Copy link
Author

ghost commented Oct 8, 2013

Thanks for the feedback and getting this pulled in so quickly!

myronmarston added a commit that referenced this pull request Oct 29, 2013
In https://github.com/tpope/fivemat/blob/v1.2.1/lib/fivemat/rspec.rb#L43-L49,
Fivemat has two ways to check for pending example fixed:
 - example.execution_result[:exception].pending_fixed?
   (but we removed this in #1106 because it broke when dealing with frozen exceptions)
 - RSpec::Core::PendingExampleFixedError === exception
   (but this const was renamed in b5d10cc).

The `RSpec::Core::PendingExampleFixedError` line in Fivemat was
never hit in recent releases because `example.execution_result[:exception]`
responded to `pending_fixed?` -- until 2.14.6.
myronmarston added a commit that referenced this pull request Oct 30, 2013
In https://github.com/tpope/fivemat/blob/v1.2.1/lib/fivemat/rspec.rb#L43-L49,
Fivemat has two ways to check for pending example fixed:
 - example.execution_result[:exception].pending_fixed?
   (but we removed this in #1106 because it broke when dealing with frozen exceptions)
 - RSpec::Core::PendingExampleFixedError === exception
   (but this const was renamed in b5d10cc).

The `RSpec::Core::PendingExampleFixedError` line in Fivemat was
never hit in recent releases because `example.execution_result[:exception]`
responded to `pending_fixed?` -- until 2.14.6.
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
…end-exception

Don't extend exception

Conflicts:
	Changelog.md
	lib/rspec/core/pending.rb

---
This commit was imported from rspec/rspec-core@e5b18b7.
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
In https://github.com/tpope/fivemat/blob/v1.2.1/lib/fivemat/rspec.rb#L43-L49,
Fivemat has two ways to check for pending example fixed:
 - example.execution_result[:exception].pending_fixed?
   (but we removed this in rspec/rspec-core#1106 because it broke when dealing with frozen exceptions)
 - RSpec::Core::PendingExampleFixedError === exception
   (but this const was renamed in b5d10ccbe3a590adc67d807acb565be3657e51bf).

The `RSpec::Core::PendingExampleFixedError` line in Fivemat was
never hit in recent releases because `example.execution_result[:exception]`
responded to `pending_fixed?` -- until 2.14.6.

---
This commit was imported from rspec/rspec-core@35850da.
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
…end-exception

Don't extend exception

---
This commit was imported from rspec/rspec-core@a0bf23a.
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
In https://github.com/tpope/fivemat/blob/v1.2.1/lib/fivemat/rspec.rb#L43-L49,
Fivemat has two ways to check for pending example fixed:
 - example.execution_result[:exception].pending_fixed?
   (but we removed this in rspec/rspec-core#1106 because it broke when dealing with frozen exceptions)
 - RSpec::Core::PendingExampleFixedError === exception
   (but this const was renamed in b5d10ccbe3a590adc67d807acb565be3657e51bf).

The `RSpec::Core::PendingExampleFixedError` line in Fivemat was
never hit in recent releases because `example.execution_result[:exception]`
responded to `pending_fixed?` -- until 2.14.6.

---
This commit was imported from rspec/rspec-core@e2bae1c.
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.

3 participants