1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/ruby
Lars Kanis 6594623f62 Fix Marshal.dump(closed_io) to raise TypeError and allow encoding on closed IO
Mashalling a closed IO object raised "closed stream (IOError)" before instead of TypeError.
This changes IO#(in|ex)ternal_encoding to still return the encoding even if the underlying FD is closed.

Fixes bug #18077
2021-08-22 10:33:22 +09:00
..
enc
allpairs.rb
beginmainend.rb
bug-11928.rb
bug-13526.rb
lbtest.rb
marshaltestlib.rb
sentence.rb
test_alias.rb
test_argf.rb
test_arithmetic_sequence.rb test/ruby/test_arithmetic_sequence.rb: restore test_last_bug17218 2020-12-10 00:59:00 +09:00
test_arity.rb
test_array.rb
test_assignment.rb
test_ast.rb
test_autoload.rb
test_backtrace.rb
test_basicinstructions.rb
test_beginendblock.rb
test_bignum.rb
test_call.rb
test_case.rb
test_class.rb Skip freezing check on setting temporary class path [Bug #17563] 2021-01-20 19:24:16 +09:00
test_clone.rb
test_comparable.rb
test_complex.rb
test_complex2.rb
test_complexrational.rb
test_condition.rb
test_const.rb
test_continuation.rb
test_default_gems.rb
test_defined.rb
test_dir.rb
test_dir_m17n.rb win32: Use UTF-8 as filesystem encoding [Feature #12654] 2020-12-20 18:34:04 +09:00
test_econv.rb
test_encoding.rb Fix a failure 2021-02-16 18:17:09 +09:00
test_enum.rb
test_enumerator.rb Undef Enumerator::Chain#{feed,next,next_values,peek,peek_values} 2021-03-06 13:56:16 -08:00
test_env.rb
test_eval.rb
test_exception.rb
test_fiber.rb Replace copy coroutine with pthread implementation. 2021-07-01 11:23:03 +12:00
test_file.rb
test_file_exhaustive.rb
test_fixnum.rb test/ruby: Check warning messages at a finer granularity 2020-12-17 20:06:18 +09:00
test_flip.rb
test_float.rb
test_fnmatch.rb
test_frozen_error.rb
test_gc.rb
test_gc_compact.rb
test_hash.rb
test_ifunless.rb
test_inlinecache.rb
test_insns_leaf.rb
test_integer.rb
test_integer_comb.rb
test_io.rb Fix Marshal.dump(closed_io) to raise TypeError and allow encoding on closed IO 2021-08-22 10:33:22 +09:00
test_io_m17n.rb
test_iseq.rb
test_iterator.rb
test_jit.rb Don't cancel JIT-ed code on TracePoint :class 2021-08-12 23:26:44 -07:00
test_jit_debug.rb tune parallel test 2020-12-01 09:39:09 +09:00
test_key_error.rb
test_keyword.rb Add back checks for empty kw splat with tests (#4405) 2021-04-23 22:17:20 -04:00
test_lambda.rb
test_lazy_enumerator.rb Fix lazy enumerator with index size 2021-05-27 14:17:32 -07:00
test_literal.rb
test_m17n.rb Windows: Read ENV names and values as UTF-8 encoded Strings (#3818) 2020-12-08 02:00:39 +09:00
test_m17n_comb.rb Add test for String#casecmp? 2021-01-24 15:57:13 +09:00
test_marshal.rb
test_math.rb
test_memory_view.rb [memory_view][fiddle] Rename len to byte_size in rb_memory_view_t 2020-12-23 09:24:53 +09:00
test_metaclass.rb
test_method.rb
test_method_cache.rb invalidate negative cache any time. 2021-02-19 16:54:31 +09:00
test_mixed_unicode_escapes.rb
test_module.rb
test_name_error.rb
test_nomethod_error.rb
test_not.rb
test_numeric.rb Use Rational for Float#round with ndigits > 14 2021-08-06 15:03:51 -07:00
test_object.rb [WIP] add error_squiggle gem 2021-06-29 23:45:49 +09:00
test_objectspace.rb
test_optimization.rb
test_pack.rb
test_parse.rb
test_path.rb
test_pattern_matching.rb
test_pipe.rb
test_primitive.rb
test_proc.rb
test_process.rb Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
test_rand.rb Deprecate Random::DEFAULT 2020-12-14 20:29:50 +01:00
test_range.rb
test_rational.rb
test_rational2.rb
test_readpartial.rb
test_refinement.rb
test_regexp.rb
test_require.rb
test_require_lib.rb
test_rubyoptions.rb
test_rubyvm.rb
test_rubyvm_jit.rb Rename RubyVM::MJIT to RubyVM::JIT 2021-01-13 22:46:51 -08:00
test_settracefunc.rb
test_signal.rb
test_sleep.rb
test_sprintf.rb
test_sprintf_comb.rb
test_stack.rb
test_string.rb test/ruby/test_string.rb: make GitHub syntax-highlight correctly 2021-03-08 17:04:27 +09:00
test_stringchar.rb
test_struct.rb
test_super.rb
test_symbol.rb
test_syntax.rb
test_system.rb
test_thread.rb Keep GC disabled until VM bootstrap has done [Bug #17583] 2021-07-01 18:49:17 -07:00
test_thread_cv.rb
test_thread_queue.rb
test_threadgroup.rb
test_time.rb
test_time_tz.rb Parse "-00:00" as UTC for the round-trip [Feature #17544] 2021-02-16 20:34:23 +09:00
test_trace.rb
test_transcode.rb - add regression tests for U+6E7F (湿) in ISO-2022-JP 2021-07-01 17:33:43 +09:00
test_undef.rb
test_unicode_escape.rb
test_variable.rb
test_vm_dump.rb
test_weakmap.rb
test_whileuntil.rb
test_yield.rb
ut_eof.rb