aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtlTests/AnnotationTests.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala/firrtlTests/AnnotationTests.scala')
-rw-r--r--src/test/scala/firrtlTests/AnnotationTests.scala8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/test/scala/firrtlTests/AnnotationTests.scala b/src/test/scala/firrtlTests/AnnotationTests.scala
index 7b944470..03e3198e 100644
--- a/src/test/scala/firrtlTests/AnnotationTests.scala
+++ b/src/test/scala/firrtlTests/AnnotationTests.scala
@@ -2,7 +2,7 @@
package firrtlTests
-import java.io.{File, FileWriter, Writer}
+import java.io.{File, FileWriter}
import firrtl.annotations.AnnotationYamlProtocol._
import firrtl.annotations._
@@ -12,10 +12,8 @@ import firrtl.transforms.OptimizableExtModuleAnnotation
import firrtl.passes.InlineAnnotation
import firrtl.passes.memlib.PinAnnotation
import firrtl.util.BackendCompilationUtilities
-import firrtl.transforms.DontTouchAnnotation
import net.jcazevedo.moultingyaml._
import org.scalatest.Matchers
-import logger._
/**
* An example methodology for testing Firrtl annotations.
@@ -72,11 +70,11 @@ abstract class AnnotationTests extends AnnotationSpec with Matchers {
result.annotations.head should matchPattern {
case DeletedAnnotation(`tname`, `inlineAnn`) =>
}
- val exception = (intercept[FIRRTLException] {
+ val exception = (intercept[Exception] {
result.getEmittedCircuit
})
val deleted = result.deletedAnnotations
- exception.str should be (s"No EmittedCircuit found! Did you delete any annotations?\n$deleted")
+ exception.getMessage should be (s"No EmittedCircuit found! Did you delete any annotations?\n$deleted")
}
"Renaming" should "propagate in Lowering of memories" in {