aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/python/ut/py2
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/py2
downloadydb-1110808a9d39d4b808aef724c861a2e1a38d2a69.tar.gz
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'contrib/libs/python/ut/py2')
-rw-r--r--contrib/libs/python/ut/py2/use.cpp10
-rw-r--r--contrib/libs/python/ut/py2/ya.make9
2 files changed, 19 insertions, 0 deletions
diff --git a/contrib/libs/python/ut/py2/use.cpp b/contrib/libs/python/ut/py2/use.cpp
new file mode 100644
index 0000000000..a4a2c8d9bb
--- /dev/null
+++ b/contrib/libs/python/ut/py2/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], '2');
+ }
+}
+
diff --git a/contrib/libs/python/ut/py2/ya.make b/contrib/libs/python/ut/py2/ya.make
new file mode 100644
index 0000000000..9c5c824761
--- /dev/null
+++ b/contrib/libs/python/ut/py2/ya.make
@@ -0,0 +1,9 @@
+OWNER(spreis)
+
+UNITTEST()
+SRCS(use.cpp)
+
+PEERDIR(
+ contrib/libs/python/ut/lib
+)
+END()