diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2022-09-21 20:17:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2022-09-21 20:17:38 +0300 |
commit | e6c9b17192c56494adba359d5e132c431b241191 (patch) | |
tree | 6f2449871a118a0e8919ce842b1174e06cb470ef /contrib/restricted/boost/libs/python/arcadia_test | |
parent | 285021ab1aac39e84b269d9bacd4deee69cf63fc (diff) | |
download | ydb-22.4.21.tar.gz |
Ydb stable 22-4-2122.4.21
x-stable-origin-commit: e89099581237299a132feafb5b58af59ebd0468a
Diffstat (limited to 'contrib/restricted/boost/libs/python/arcadia_test')
3 files changed, 21 insertions, 0 deletions
diff --git a/contrib/restricted/boost/libs/python/arcadia_test/mod/module.cpp b/contrib/restricted/boost/libs/python/arcadia_test/mod/module.cpp new file mode 100644 index 0000000000..6053f30c81 --- /dev/null +++ b/contrib/restricted/boost/libs/python/arcadia_test/mod/module.cpp @@ -0,0 +1,11 @@ +#include <boost/python.hpp> + +using namespace boost::python; + +static const char* hello() { + return "hello world!"; +} + +BOOST_PYTHON_MODULE(arcadia_boost_python_test) { + def("hello", &hello); +} diff --git a/contrib/restricted/boost/libs/python/arcadia_test/py2/test_hello.py b/contrib/restricted/boost/libs/python/arcadia_test/py2/test_hello.py new file mode 100644 index 0000000000..67d1d8f06a --- /dev/null +++ b/contrib/restricted/boost/libs/python/arcadia_test/py2/test_hello.py @@ -0,0 +1,5 @@ +import arcadia_boost_python_test as M + + +def test_hello(): + assert M.hello() == "hello world!" diff --git a/contrib/restricted/boost/libs/python/arcadia_test/py3/test_hello.py b/contrib/restricted/boost/libs/python/arcadia_test/py3/test_hello.py new file mode 100644 index 0000000000..67d1d8f06a --- /dev/null +++ b/contrib/restricted/boost/libs/python/arcadia_test/py3/test_hello.py @@ -0,0 +1,5 @@ +import arcadia_boost_python_test as M + + +def test_hello(): + assert M.hello() == "hello world!" |