mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
![]() In Ruby < 3.0, the superclass of StringIO was actually already `Data`,
but it doesn't have the expected shape. So, on these earlier versions it errors:
> NoMethodError: undefined method `members' for #<StringIO:0x00005641dd5f2880>
> vendor/bundle/ruby/2.6.0/gems/psych-5.2.5/lib/psych/visitors/yaml_tree.rb:170:in `visit_Data'
This test doesn't fail on 2.7, presumably because it can pull in a newer `stringio` version.
|
||
---|---|---|
.. | ||
handlers | ||
json | ||
nodes | ||
visitors | ||
helper.rb | ||
test_alias_and_anchor.rb | ||
test_array.rb | ||
test_boolean.rb | ||
test_class.rb | ||
test_coder.rb | ||
test_data.rb | ||
test_date_time.rb | ||
test_deprecated.rb | ||
test_document.rb | ||
test_emitter.rb | ||
test_encoding.rb | ||
test_exception.rb | ||
test_hash.rb | ||
test_json_tree.rb | ||
test_marshalable.rb | ||
test_merge_keys.rb | ||
test_nil.rb | ||
test_null.rb | ||
test_numeric.rb | ||
test_object.rb | ||
test_object_references.rb | ||
test_omap.rb | ||
test_parser.rb | ||
test_psych.rb | ||
test_psych_set.rb | ||
test_ractor.rb | ||
test_safe_load.rb | ||
test_scalar.rb | ||
test_scalar_scanner.rb | ||
test_serialize_subclasses.rb | ||
test_set.rb | ||
test_stream.rb | ||
test_string.rb | ||
test_stringio.rb | ||
test_struct.rb | ||
test_symbol.rb | ||
test_tree_builder.rb | ||
test_yaml.rb | ||
test_yaml_special_cases.rb | ||
test_yamldbm.rb | ||
test_yamlstore.rb |