File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -270,10 +270,15 @@ def duck.to_r = 1/11111
270270 test "#freeze" do
271271 config = Config . new ( open_timeout : 1 )
272272 config . freeze
273- assert_raise FrozenError do
274- config . open_timeout = 2
273+ assert config . frozen?
274+ assert config . __send__ ( :data ) . frozen?
275+ pend_if_truffleruby "https://github.com/oracle/truffleruby/issues/3850" do
276+ assert_raise FrozenError do
277+ config . open_timeout = 2
278+ assert_equal 1 , config . open_timeout
279+ end
280+ assert_equal 1 , config . open_timeout
275281 end
276- assert_same 1 , config . open_timeout
277282 end
278283
279284 test "#dup" do
@@ -302,10 +307,14 @@ def duck.to_r = 1/11111
302307 original . freeze
303308 copy = original . clone
304309 assert copy . frozen?
305- assert_raise FrozenError do
306- copy . open_timeout = 2
310+ assert copy . __send__ ( :data ) . frozen?
311+ pend_if_truffleruby "https://github.com/oracle/truffleruby/issues/3850" do
312+ assert_raise FrozenError do
313+ copy . open_timeout = 2
314+ assert_equal 1 , copy . open_timeout
315+ end
316+ assert_equal 1 , copy . open_timeout
307317 end
308- assert_equal 1 , copy . open_timeout
309318 end
310319
311320 test "#inherited? and #reset(attr)" do
You can’t perform that action at this time.
0 commit comments