mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-06 23:56:59 +08:00
fix testcases on Python 3.x
This commit is contained in:
parent
d7efa4ff7b
commit
057d056139
@ -7,6 +7,6 @@ from example import return_class_1
|
|||||||
from example import return_class_2
|
from example import return_class_2
|
||||||
from example import return_none
|
from example import return_none
|
||||||
|
|
||||||
print(type(return_class_1()))
|
print(type(return_class_1()).__name__)
|
||||||
print(type(return_class_2()))
|
print(type(return_class_2()).__name__)
|
||||||
print(type(return_none()))
|
print(type(return_none()).__name__)
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
<class 'example.DerivedClass1'>
|
DerivedClass1
|
||||||
<class 'example.DerivedClass2'>
|
DerivedClass2
|
||||||
<type 'NoneType'>
|
NoneType
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user