We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bd0908 commit d1764a6Copy full SHA for d1764a6
test/runtests.jl
@@ -290,7 +290,7 @@ const PyInt = pyversion < v"3" ? Int : Clonglong
290
end
291
@test convert(BigInt, PyObject(1234)) == 1234
292
293
- # hasproperty, getproperty, and propertynames
+ # hasproperty, getproperty, trygetproperty, and propertynames
294
py"""
295
class A:
296
class B:
@@ -302,6 +302,7 @@ const PyInt = pyversion < v"3" ? Int : Clonglong
302
A = py"A"
303
@test hasproperty(A, "B")
304
@test getproperty(A, "B") == py"A.B"
305
+ @test PyCall.trygetproperty(A, "C", nothing) === py"None"
306
@test :B in propertynames(A)
307
@static if VERSION >= v"0.7-"
308
@test :D in propertynames(A.B)
0 commit comments