Skip to content

Commit a7b9720

Browse files
Fix tests on warnings
1 parent e4eb01d commit a7b9720

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/core-test/quantum_objects_evo.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
coef2(p, t) * conj(coef3(p, t)) * (spre(a) * spost(X') - 0.5 * spre(X' * a) - 0.5 * spost(X' * a)) + # cross terms
217217
conj(coef2(p, t)) * coef3(p, t) * (spre(X) * spost(a') - 0.5 * spre(a' * X) - 0.5 * spost(a' * X)) # cross terms
218218
L_ti = liouvillian(H_ti) + D1_ti + D2_ti
219-
L_td = @test_logs (:warn,) (:warn,) liouvillian(H_td, c_ops) # warnings from lazy tensor in `lindblad_dissipator(c_op2)`
219+
L_td = @test_logs liouvillian(H_td, c_ops) # Test there are no warnings from lazy tensor
220220
ρvec = mat2vec(rand_dm(N))
221221
@test L_td(p, t) L_ti
222222
@test iscached(L_td) == false
@@ -237,7 +237,7 @@
237237

238238
coef_wrong1(t) = nothing
239239
coef_wrong2(p, t::ComplexF64) = nothing
240-
@test_logs (:warn,) (:warn,) liouvillian(H_td * H_td) # warnings from lazy tensor
240+
@test_logs liouvillian(H_td * H_td) # Check there are no warnings from lazy tensor
241241
@test_throws ArgumentError QobjEvo(a, coef_wrong1)
242242
@test_throws ArgumentError QobjEvo(a, coef_wrong2)
243243
@test_throws MethodError QobjEvo([[a, coef1], a' * a, [a', coef2]])

0 commit comments

Comments
 (0)