ruby-gettext/gettext@49b9f4c [master] test: omit per thread $SAFE test on Ruby 2.6

0 views
Skip to first unread message

Kouhei Sutou

unread,
Jun 15, 2018, 11:09:32 PM6/15/18
to ruby-gett...@googlegroups.com
Author
Kouhei Sutou <k...@clear-code.com>
Date
2018-06-16 12:08:50 +0900 (Sat, 16 Jun 2018)
New Revision
49b9f4ca66583395ddfa91503afd7593f069de18
Message
test: omit per thread $SAFE test on Ruby 2.6
Modified files
  Modified: test/test_gettext.rb (+3 -0)
===================================================================
...
352
353
354
 
 
 
355
356
357
...
352
353
354
355
356
357
358
359
360
@@ -352,6 +352,9 @@ DDD
   end
 
   def test_safe_mode
+    if RUBY_VERSION >= "2.6.0"
+      omit("Per thread $SAFE is removed since Ruby 2.6.")
+    end
     Thread.start{
       $SAFE = 1
       GetText.bindtextdomain("test1", :path => "locale")
Reply all
Reply to author
Forward
0 new messages