File tree 1 file changed +15
-6
lines changed
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
270
270
test "#freeze" do
271
271
config = Config . new ( open_timeout : 1 )
272
272
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
275
281
end
276
- assert_same 1 , config . open_timeout
277
282
end
278
283
279
284
test "#dup" do
@@ -302,10 +307,14 @@ def duck.to_r = 1/11111
302
307
original . freeze
303
308
copy = original . clone
304
309
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
307
317
end
308
- assert_equal 1 , copy . open_timeout
309
318
end
310
319
311
320
test "#inherited? and #reset(attr)" do
You can’t perform that action at this time.
0 commit comments