diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-12-19 17:29:21 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-12-19 17:49:59 +0900 |
commit | 1148636e3dfb3aa25485b6e5cf40c043df848c07 (patch) | |
tree | 15d6d1ea24816ebf1f4718d8877333a0dab0654f /test/irb/test_debug_cmd.rb | |
parent | 9761422f47f6c06b8aa332b7c941a5874319508a (diff) | |
download | ruby-1148636e3dfb3aa25485b6e5cf40c043df848c07.tar.gz |
[ruby/irb] PTY module is platform dependent
https://github.com/ruby/irb/commit/dbb3dc72ff
Diffstat (limited to 'test/irb/test_debug_cmd.rb')
-rw-r--r-- | test/irb/test_debug_cmd.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/irb/test_debug_cmd.rb b/test/irb/test_debug_cmd.rb index 9aafbec7f0..4d1bb6d6b9 100644 --- a/test/irb/test_debug_cmd.rb +++ b/test/irb/test_debug_cmd.rb @@ -1,6 +1,11 @@ # frozen_string_literal: true -require "pty" unless RUBY_ENGINE == 'truffleruby' +begin + require "pty" +rescue LoadError + return +end + require "tempfile" require "tmpdir" require "envutil" |