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
Cannot raise KeyError
without arguments after 9.3.0.0
#6860
Milestone
Comments
luchihoratiu
added a commit
to luchihoratiu/facter
that referenced
this issue
Sep 27, 2021
This commit pins jruby in GitHub Actions unit tests workflow to `9.2.19.0` since the latest version `9.3.0.0` introduced a non-backwards compatible change which breaks Facter (jruby/jruby#6860). This is a temporary change until a fixed version will be released.
luchihoratiu
added a commit
to luchihoratiu/facter
that referenced
this issue
Sep 27, 2021
This commit pins jruby in GitHub Actions unit tests workflow to `9.2.19.0` since the latest version `9.3.0.0` introduced a non-backwards compatible change which breaks Facter (jruby/jruby#6860). This is a temporary change until a fixed version will be released.
GabrielNagy
added a commit
to GabrielNagy/jruby
that referenced
this issue
Sep 27, 2021
After JRuby 9.3, attempting to raise a KeyError with no arguments would fail with an ArgumentError. This commit fixes this behavior to match MRI, and updates the `key` and `receiver` methods to raise if they are unset. After this change, all MRI tests from `test_key_error.rb` pass. Fixes jruby#6860.
GabrielNagy
added a commit
to GabrielNagy/jruby
that referenced
this issue
Sep 27, 2021
After JRuby 9.3, attempting to raise a KeyError with no arguments would fail with an ArgumentError. This commit fixes this behavior to match MRI, and updates the `key` and `receiver` methods to raise if they are unset. After this change, all MRI tests from `test_key_error.rb` pass. Fixes jruby#6860.
GabrielNagy
added a commit
to GabrielNagy/jruby
that referenced
this issue
Sep 27, 2021
After JRuby 9.3, attempting to raise a KeyError with no arguments would fail with an ArgumentError. This commit fixes this behavior to match MRI, and updates the `key` and `receiver` methods to raise if they are unset. Prior to this, the relevant MRI tests for this functionality were not running in CI, and when ran manually 3 tests were failing. Add the `test_key_error.rb` file to the `mri.code` suite. After this change, all tests from `test_key_error.rb` pass. Fixes jruby#6860.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment Information
Expected Behavior
JRuby should allow raising
KeyError
with no arguments, similar to MRI:Actual Behavior
Raising
KeyError
without arguments raises anArgumentError
:Failure initially observed in https://github.com/puppetlabs/facter/pull/2438/checks?check_run_id=3719821972
This has worked previously with JRuby 9.2.19.0:
The text was updated successfully, but these errors were encountered: