Skip to content

Commit 5193e6a

Browse files
authored
Merge 5a6f11a into 930a127
2 parents 930a127 + 5a6f11a commit 5193e6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pip/tests/test_interpreter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,15 @@ def test_target_error() -> None:
184184
e.interpret(
185185
"operation Program() : Result { use q = Qubit(); if M(q) == Zero { return Zero } else { return One } }"
186186
)
187-
assert str(excinfo.value).startswith("Qsc.BaseProfCk.ResultLiteral") != -1
187+
assert str(excinfo.value).startswith("Qsc.CapabilitiesCk.UseOfDynamicBool")
188188

189189

190190
def test_qirgen_compile_error() -> None:
191191
e = Interpreter(TargetProfile.Base)
192192
e.interpret("operation Program() : Int { return 0 }")
193193
with pytest.raises(QSharpError) as excinfo:
194194
e.qir("Foo()")
195-
assert str(excinfo.value).startswith("Qsc.Resolve.NotFound") != -1
195+
assert str(excinfo.value).startswith("Qsc.Resolve.NotFound")
196196

197197

198198
def test_error_spans_from_multiple_lines() -> None:

0 commit comments

Comments
 (0)