Skip to content

Commit 8f8b023

Browse files
committed
Mute console output in test suite
* src/test/scala/scala/xml/pull/XMLEventReaderTest.scala (missingTagTest): Manual build of Source object to override reportError.
1 parent d89b64d commit 8f8b023

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/scala/scala/xml/pull/XMLEventReaderTest.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ class XMLEventReaderTest {
6666
|</exclusive-start>
6767
|""".stripMargin
6868

69-
val er = new XMLEventReader(Source.fromString(data))
69+
val er = new XMLEventReader(new Source {
70+
val iter = data.iterator
71+
override def reportError(pos: Int, msg: String, out: java.io.PrintStream = Console.err) {}
72+
})
7073
while(er.hasNext) er.next()
7174
er.stop()
7275
}

0 commit comments

Comments
 (0)