2525 Base. in (v:: Int , x:: Foo ) = x. value == v
2626 Base. nameof (x:: Foo ) = " nameof $(x. value) "
2727 @testset " type" begin
28- @test pyis (pytype (pyjl (Foo (1 ))), PythonCall. pyjlanytype)
29- @test pyis (pytype (pyjl (nothing )), PythonCall. pyjlanytype)
30- @test pyis (pytype (pyjl (missing )), PythonCall. pyjlanytype)
28+ @test pyis (pytype (pyjl (Foo (1 ))), PythonCall. Internals . JlWrap . pyjlanytype)
29+ @test pyis (pytype (pyjl (nothing )), PythonCall. Internals . JlWrap . pyjlanytype)
30+ @test pyis (pytype (pyjl (missing )), PythonCall. Internals . JlWrap . pyjlanytype)
3131 end
3232 @testset " bool" begin
3333 @test pytruth (pyjl (Foo (0 )))
217217
218218@testitem " array" begin
219219 @testset " type" begin
220- @test pyis (pytype (pyjl (fill (nothing ))), PythonCall. pyjlarraytype)
221- @test pyis (pytype (pyjl ([1 2 ; 3 4 ])), PythonCall. pyjlarraytype)
220+ @test pyis (pytype (pyjl (fill (nothing ))), PythonCall. Internals . JlWrap . pyjlarraytype)
221+ @test pyis (pytype (pyjl ([1 2 ; 3 4 ])), PythonCall. Internals . JlWrap . pyjlarraytype)
222222 end
223223 @testset " bool" begin
224224 @test ! pytruth (pyjl (fill (nothing , 0 , 1 )))
305305 @testset " copy" begin
306306 x = pyjl ([1 2 ; 3 4 ])
307307 y = x. copy ()
308- @test pyis (pytype (y), PythonCall. pyjlarraytype)
308+ @test pyis (pytype (y), PythonCall. Internals . JlWrap . pyjlarraytype)
309309 @test pyjlvalue (x) == pyjlvalue (y)
310310 @test typeof (pyjlvalue (x)) == typeof (pyjlvalue (y))
311311 @test pyjlvalue (x) != = pyjlvalue (y)
354354
355355@testitem " dict" begin
356356 @testset " type" begin
357- @test pyis (pytype (pyjl (Dict ())), PythonCall. pyjldicttype)
357+ @test pyis (pytype (pyjl (Dict ())), PythonCall. Internals . JlWrap . pyjldicttype)
358358 end
359359 @testset " bool" begin
360360 @test ! pytruth (pyjl (Dict ()))
364364
365365@testitem " io" begin
366366 @testset " type" begin
367- @test pyis (pytype (pyjl (devnull )), PythonCall. pyjlbinaryiotype)
368- @test pyis (pytype (pybinaryio (devnull )), PythonCall. pyjlbinaryiotype)
369- @test pyis (pytype (pytextio (devnull )), PythonCall. pyjltextiotype)
367+ @test pyis (pytype (pyjl (devnull )), PythonCall. Internals. JlWrap. pyjlbinaryiotype)
368+ @test pyis (
369+ pytype (pybinaryio (devnull )),
370+ PythonCall. Internals. JlWrap. pyjlbinaryiotype,
371+ )
372+ @test pyis (pytype (pytextio (devnull )), PythonCall. Internals. JlWrap. pyjltextiotype)
370373 end
371374 @testset " bool" begin
372375 @test pytruth (pybinaryio (devnull ))
384387
385388@testitem " module" begin
386389 @testset " type" begin
387- @test pyis (pytype (pyjl (PythonCall)), PythonCall. pyjlmoduletype)
390+ @test pyis (pytype (pyjl (PythonCall)), PythonCall. Internals . JlWrap . pyjlmoduletype)
388391 end
389392 @testset " bool" begin
390393 @test pytruth (pyjl (PythonCall))
@@ -398,11 +401,11 @@ end
398401
399402@testitem " number" begin
400403 @testset " type" begin
401- @test pyis (pytype (pyjl (false )), PythonCall. pyjlintegertype)
402- @test pyis (pytype (pyjl (0 )), PythonCall. pyjlintegertype)
403- @test pyis (pytype (pyjl (0 // 1 )), PythonCall. pyjlrationaltype)
404- @test pyis (pytype (pyjl (0.0 )), PythonCall. pyjlrealtype)
405- @test pyis (pytype (pyjl (Complex (0.0 ))), PythonCall. pyjlcomplextype)
404+ @test pyis (pytype (pyjl (false )), PythonCall. Internals . JlWrap . pyjlintegertype)
405+ @test pyis (pytype (pyjl (0 )), PythonCall. Internals . JlWrap . pyjlintegertype)
406+ @test pyis (pytype (pyjl (0 // 1 )), PythonCall. Internals . JlWrap . pyjlrationaltype)
407+ @test pyis (pytype (pyjl (0.0 )), PythonCall. Internals . JlWrap . pyjlrealtype)
408+ @test pyis (pytype (pyjl (Complex (0.0 ))), PythonCall. Internals . JlWrap . pyjlcomplextype)
406409 end
407410 @testset " bool" begin
408411 @test ! pytruth (pyjl (false ))
428431
429432@testitem " set" begin
430433 @testset " type" begin
431- @test pyis (pytype (pyjl (Set ())), PythonCall. pyjlsettype)
434+ @test pyis (pytype (pyjl (Set ())), PythonCall. Internals . JlWrap . pyjlsettype)
432435 end
433436 @testset " bool" begin
434437 @test ! pytruth (pyjl (Set ()))
438441
439442@testitem " type" begin
440443 @testset " type" begin
441- @test pyis (pytype (pyjl (Int)), PythonCall. pyjltypetype)
444+ @test pyis (pytype (pyjl (Int)), PythonCall. Internals . JlWrap . pyjltypetype)
442445 end
443446 @testset " bool" begin
444447 @test pytruth (pyjl (Int))
447450
448451@testitem " vector" begin
449452 @testset " type" begin
450- @test pyis (pytype (pyjl ([1 , 2 , 3 , 4 ])), PythonCall. pyjlvectortype)
453+ @test pyis (pytype (pyjl ([1 , 2 , 3 , 4 ])), PythonCall. Internals . JlWrap . pyjlvectortype)
451454 end
452455 @testset " bool" begin
453456 @test ! pytruth (pyjl ([]))
0 commit comments