Project

General

Profile

Feature #16043 » 0001-LOAD_PATH.resolve_feature_path-should-not-raise.patch

deivid (David Rodríguez), 08/04/2019 11:16 AM

View differences:

load.c
sym = ID2SYM(rb_intern("so"));
break;
default:
load_failed(fname);
return Qnil;
}
return rb_ary_new_from_args(2, sym, path);
test/ruby/test_require.rb
$:.replace(paths)
$".replace(loaded)
end
def test_resolve_feature_path_with_missing_feature
assert_nil($LOAD_PATH.resolve_feature_path("superkalifragilisticoespialidoso"))
end
end
end
    (1-1/1)