mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-14 09:34:46 +00:00
9693a5c78f
At this point, there is only a single test for interpreter basics. Apart from embedding itself, having a C++ test framework will also benefit the C++-side features by allowing them to be tested directly.
10 lines
195 B
Python
10 lines
195 B
Python
from widget_module import Widget
|
|
|
|
|
|
class DerivedWidget(Widget):
|
|
def __init__(self, message):
|
|
super(DerivedWidget, self).__init__(message)
|
|
|
|
def the_answer(self):
|
|
return 42
|