Skip to content

Commit eb63757

Browse files
Update test/basis/basis.jl
1 parent da7ee2a commit eb63757

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

test/basis/basis.jl

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -209,19 +209,7 @@ end
209209
# Test that we can initialize the integrator without the symbolic conversion error
210210
# The key test is that this doesn't throw a MethodError about
211211
# "Cannot convert BasicSymbolic{Real} to Float64" during setup
212-
try
213-
sol = solve(recovered_model, Tsit5(), save_everystep = false)
214-
# If solve succeeds or fails with an Unstable error, that's fine
215-
# We just want to ensure no MethodError about symbolic conversion
216-
@test true
217-
catch e
218-
# Fail only if it's a MethodError about symbolic to Float64 conversion
219-
if e isa MethodError && occursin("BasicSymbolic", string(e))
220-
rethrow(e)
221-
end
222-
# Otherwise, pass the test (other errors are acceptable)
223-
@test true
224-
end
212+
sol = solve(recovered_model, Tsit5(), save_everystep = false)
225213

226214
# Also test with parameters that have default values
227215
@parameters w2[1:2] = [1.5, 2.5]

0 commit comments

Comments
 (0)