summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-12-09 19:16:51 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-12-09 19:17:32 +0900
commit194327942690a7997c7b48d34cc105c6ec8b8d40 (patch)
tree278af663ed192c5e76db6cab6c114ac29208e94f
parent4b36832ba64a8879a4b0702d6d5079ddd9d3078e (diff)
Added workaround for CoreAssertions used by ruby/logger.
-rw-r--r--test/logger/helper.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/logger/helper.rb b/test/logger/helper.rb
index f11720bf5a2..9eaeb205b0c 100644
--- a/test/logger/helper.rb
+++ b/test/logger/helper.rb
@@ -3,6 +3,11 @@ $LOAD_PATH.unshift File.join(ROOT_DIR, 'lib') # to use logger in this repo inste
$LOAD_PATH.unshift File.join(ROOT_DIR, 'test', 'lib') # to use custom test-unit in this repo
require 'logger'
require 'test/unit'
-require 'core_assertions'
-Test::Unit::TestCase.include Test::Unit::CoreAssertions
+begin
+ # for standalone test suite on ruby/logger
+ require 'core_assertions'
+
+ Test::Unit::TestCase.include Test::Unit::CoreAssertions
+rescue LoadError
+end