Skip to content

Commit 4beb74b

Browse files
committed
Ensure devdeps include pandas
1 parent 37a4f5a commit 4beb74b

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

CondaPkg.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ version = ">=3.10,<3.14"
1515
[dev.deps]
1616
matplotlib = ""
1717
numpy = ""
18+
pandas = ""
1819
pyside6 = ""
1920
python = "<3.14"

test/Convert.jl

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,7 @@ end
275275

276276
@testitem "numpy scalars" setup=[Setup] begin
277277
if Setup.devdeps
278-
np = try
279-
pyimport("numpy")
280-
catch
281-
@test_skip "numpy not available"
282-
return
283-
end
278+
np = pyimport("numpy")
284279

285280
@test pyconvert(Int, np.int64(5)) === 5
286281
@test pyconvert(Float32, np.float32(1.25)) === Float32(1.25)
@@ -293,12 +288,7 @@ end
293288

294289
@testitem "pandas NA" setup=[Setup] begin
295290
if Setup.devdeps
296-
pd = try
297-
pyimport("pandas")
298-
catch
299-
@test_skip "pandas not available"
300-
return
301-
end
291+
pd = pyimport("pandas")
302292

303293
@test pyconvert(Missing, pd.NA) === missing
304294
@test pyconvert(Nothing, pd.NA) === nothing

0 commit comments

Comments
 (0)