-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Four of the tests fail in ruby 3.3.0 (although they work in 3.2.2) with an incompatible marshal file format error, even after updating gem dependencies:
Finished in 5.32 seconds (files took 0.04708 seconds to load)
25 examples, 4 failures
Failed examples:
rspec ./spec/safe_ruby_spec.rb:5 # SafeRuby#eval allows basic operations
rspec ./spec/safe_ruby_spec.rb:10 # SafeRuby#eval returns correct object
rspec ./spec/safe_ruby_spec.rb:46 # SafeRuby#eval options timeout defaults to a 5 second timeout
rspec ./spec/safe_ruby_spec.rb:53 # SafeRuby#eval options timeout allows custom timeout
Here is the first one:
1) SafeRuby#eval allows basic operations
Failure/Error: raise data
RuntimeError:
/var/folders/cy/7pf5w_mj4fg3n6hzjxjs01mr0000gn/T/saferuby20240215-86452-xokox4:17:in `undef_method': undefined method `new' for class `String' (NameError)
klass.send(:undef_method, method)
^^^^^
Did you mean? next
from /var/folders/cy/7pf5w_mj4fg3n6hzjxjs01mr0000gn/T/saferuby20240215-86452-xokox4:17:in `block in keep_methods'
from /var/folders/cy/7pf5w_mj4fg3n6hzjxjs01mr0000gn/T/saferuby20240215-86452-xokox4:16:in `each'
from /var/folders/cy/7pf5w_mj4fg3n6hzjxjs01mr0000gn/T/saferuby20240215-86452-xokox4:16:in `keep_methods'
from /var/folders/cy/7pf5w_mj4fg3n6hzjxjs01mr0000gn/T/saferuby20240215-86452-xokox4:37:in `<main>'
# ./lib/safe_ruby/runner.rb:45:in `rescue in eval'
# ./lib/safe_ruby/runner.rb:41:in `eval'
# ./lib/safe_ruby/runner.rb:20:in `eval'
# ./spec/safe_ruby_spec.rb:6:in `block (3 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# TypeError:
# incompatible marshal file format (can't be read)
# format version 4.8 required; 47.118 given
# ./lib/safe_ruby/runner.rb:42:in `eval'
fguillen-getsafe
Metadata
Metadata
Assignees
Labels
No labels