Skip to content

Commit 173542e

Browse files
committed
Add deprecation test
1 parent b8c6ec9 commit 173542e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ const PyInt = pyversion < v"3" ? Int : Clonglong
310310
end
311311
setproperty!(py"A.B", "C", 2)
312312
@test py"A.B.C" == 2
313+
@test_deprecated keys(A)
313314

314315
# buffers
315316
let b = PyCall.PyBuffer(pyutf8("test string"))
@@ -321,7 +322,7 @@ const PyInt = pyversion < v"3" ? Int : Clonglong
321322

322323
let o = PyObject(1+2im)
323324
@test PyCall.hasproperty(o, :real) # replace by Base.hasproperty in the future
324-
@test :real in keys(o)
325+
@test :real in propertynames(o)
325326
@test o.real == 1
326327
end
327328

0 commit comments

Comments
 (0)