File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -184,15 +184,15 @@ def test_target_error() -> None:
184
184
e .interpret (
185
185
"operation Program() : Result { use q = Qubit(); if M(q) == Zero { return Zero } else { return One } }"
186
186
)
187
- assert str (excinfo .value ).startswith ("Qsc.BaseProfCk.ResultLiteral" ) != - 1
187
+ assert str (excinfo .value ).startswith ("Qsc.CapabilitiesCk.UseOfDynamicBool" )
188
188
189
189
190
190
def test_qirgen_compile_error () -> None :
191
191
e = Interpreter (TargetProfile .Base )
192
192
e .interpret ("operation Program() : Int { return 0 }" )
193
193
with pytest .raises (QSharpError ) as excinfo :
194
194
e .qir ("Foo()" )
195
- assert str (excinfo .value ).startswith ("Qsc.Resolve.NotFound" ) != - 1
195
+ assert str (excinfo .value ).startswith ("Qsc.Resolve.NotFound" )
196
196
197
197
198
198
def test_error_spans_from_multiple_lines () -> None :
You can’t perform that action at this time.
0 commit comments