summaryrefslogtreecommitdiff
path: root/test/ripper/test_scanner_events.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ripper/test_scanner_events.rb')
-rw-r--r--test/ripper/test_scanner_events.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb
index 423fe8f776..d6997ff475 100644
--- a/test/ripper/test_scanner_events.rb
+++ b/test/ripper/test_scanner_events.rb
@@ -2,9 +2,11 @@
# test_scanner_events.rb
#
begin
-
-require 'ripper'
-require 'test/unit'
+ require 'ripper'
+ require 'test/unit'
+ ripper_test = true
+rescue LoadError
+end
class TestRipper_ScannerEvents < Test::Unit::TestCase
@@ -806,7 +808,4 @@ class TestRipper_ScannerEvents < Test::Unit::TestCase
def test_tlambda_arg
end
-end
-
-rescue LoadError
-end
+end if ripper_test