aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/python/ut/py3
diff options
context:
space:
mode:
authorDevtools Arcadia <arcadia-devtools@yandex-team.ru>2022-02-07 18:08:42 +0300
committerDevtools Arcadia <arcadia-devtools@mous.vla.yp-c.yandex.net>2022-02-07 18:08:42 +0300
commit1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch)
treee26c9fed0de5d9873cce7e00bc214573dc2195b7 /contrib/libs/python/ut/py3
downloadydb-1110808a9d39d4b808aef724c861a2e1a38d2a69.tar.gz
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'contrib/libs/python/ut/py3')
-rw-r--r--contrib/libs/python/ut/py3/use.cpp10
-rw-r--r--contrib/libs/python/ut/py3/ya.make10
2 files changed, 20 insertions, 0 deletions
diff --git a/contrib/libs/python/ut/py3/use.cpp b/contrib/libs/python/ut/py3/use.cpp
new file mode 100644
index 00000000000..8a2531bcc12
--- /dev/null
+++ b/contrib/libs/python/ut/py3/use.cpp
@@ -0,0 +1,10 @@
+#include <contrib/libs/python/ut/lib/test.h>
+#include <library/cpp/testing/unittest/registar.h>
+
+Y_UNIT_TEST_SUITE(TestPy3Binding) {
+ Y_UNIT_TEST(version) {
+ TTestPyInvoker invoker;
+ UNIT_ASSERT_EQUAL(invoker.GetVersion()[0], '3');
+ }
+}
+
diff --git a/contrib/libs/python/ut/py3/ya.make b/contrib/libs/python/ut/py3/ya.make
new file mode 100644
index 00000000000..df6d4fe767c
--- /dev/null
+++ b/contrib/libs/python/ut/py3/ya.make
@@ -0,0 +1,10 @@
+OWNER(spreis)
+
+UNITTEST()
+USE_PYTHON3()
+SRCS(use.cpp)
+
+PEERDIR(
+ contrib/libs/python/ut/lib
+)
+END()