diff --git a/test/org/jruby/test/TestParser.java b/test/org/jruby/test/TestParser.java index dd6e4ecc659..8060ec60553 100644 --- a/test/org/jruby/test/TestParser.java +++ b/test/org/jruby/test/TestParser.java @@ -12,7 +12,7 @@ protected void setUp() throws Exception { public void testWarningLineNumber() throws Exception { String out; - String script = "p String.new 'str'"; + String script = "$stdout.puts ('str')"; out = eval(script); assertTrue(out.indexOf("test:1") != -1); } @@ -28,4 +28,4 @@ public void testErrorLineNumber() throws Exception { } } -} \ No newline at end of file +}