summaryrefslogtreecommitdiffstats
path: root/contrib/libs/python
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2024-12-16 07:22:16 +0300
committerrobot-piglet <[email protected]>2024-12-16 08:12:55 +0300
commit0f01a254ab2ce798a5fe3d488394b9a832c95c90 (patch)
treee686b98bab7d2aeb7b60510fee2b341ee989213f /contrib/libs/python
parenta04f01935286d3f1e7f226970ecd1003030a0be2 (diff)
Intermediate changes
commit_hash:cc9503be6d57be9c39414db777dfe5ccbfe7d438
Diffstat (limited to 'contrib/libs/python')
-rw-r--r--contrib/libs/python/ut/lib/test.cpp21
-rw-r--r--contrib/libs/python/ut/lib/test.h7
-rw-r--r--contrib/libs/python/ut/lib/ya.make19
-rw-r--r--contrib/libs/python/ut/py2/use.cpp10
-rw-r--r--contrib/libs/python/ut/py2/ya.make9
-rw-r--r--contrib/libs/python/ut/py3/use.cpp10
-rw-r--r--contrib/libs/python/ut/py3/ya.make10
-rw-r--r--contrib/libs/python/ut/ya.make7
8 files changed, 0 insertions, 93 deletions
diff --git a/contrib/libs/python/ut/lib/test.cpp b/contrib/libs/python/ut/lib/test.cpp
deleted file mode 100644
index e3aabc8889f..00000000000
--- a/contrib/libs/python/ut/lib/test.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include "test.h"
-
-#include <Python.h>
-#include <library/cpp/testing/unittest/registar.h>
-
-TTestPyInvoker::TTestPyInvoker() {}
-
-const char* TTestPyInvoker::GetVersion() {
- Py_Initialize();
-
- auto* module = PyImport_ImportModule("sys");
- UNIT_ASSERT(module != nullptr);
-
- auto* versionObj = PyObject_GetAttrString(module, "version");
- if (versionObj == nullptr) {
- Py_DECREF(module);
- UNIT_ASSERT(versionObj != nullptr);
- }
-
- return Py_GetVersion();
-}
diff --git a/contrib/libs/python/ut/lib/test.h b/contrib/libs/python/ut/lib/test.h
deleted file mode 100644
index 1bf824ebea8..00000000000
--- a/contrib/libs/python/ut/lib/test.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#pragma once
-
-class TTestPyInvoker {
-public:
- TTestPyInvoker();
- const char* GetVersion();
-};
diff --git a/contrib/libs/python/ut/lib/ya.make b/contrib/libs/python/ut/lib/ya.make
deleted file mode 100644
index 616d23b2cc0..00000000000
--- a/contrib/libs/python/ut/lib/ya.make
+++ /dev/null
@@ -1,19 +0,0 @@
-SUBSCRIBER(spreis)
-
-PY23_LIBRARY()
-
-WITHOUT_LICENSE_TEXTS()
-
-VERSION(Service-proxy-version)
-
-LICENSE(YandexOpen)
-
-PEERDIR(
- library/cpp/testing/unittest
-)
-
-SRCS(
- test.cpp
-)
-
-END()
diff --git a/contrib/libs/python/ut/py2/use.cpp b/contrib/libs/python/ut/py2/use.cpp
deleted file mode 100644
index a4a2c8d9bb2..00000000000
--- a/contrib/libs/python/ut/py2/use.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
-#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
deleted file mode 100644
index 4b6098561f8..00000000000
--- a/contrib/libs/python/ut/py2/ya.make
+++ /dev/null
@@ -1,9 +0,0 @@
-SUBSCRIBER(spreis)
-
-UNITTEST()
-SRCS(use.cpp)
-
-PEERDIR(
- contrib/libs/python/ut/lib
-)
-END()
diff --git a/contrib/libs/python/ut/py3/use.cpp b/contrib/libs/python/ut/py3/use.cpp
deleted file mode 100644
index 8a2531bcc12..00000000000
--- a/contrib/libs/python/ut/py3/use.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
-#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
deleted file mode 100644
index 5e6f0472f9c..00000000000
--- a/contrib/libs/python/ut/py3/ya.make
+++ /dev/null
@@ -1,10 +0,0 @@
-SUBSCRIBER(spreis)
-
-UNITTEST()
-USE_PYTHON3()
-SRCS(use.cpp)
-
-PEERDIR(
- contrib/libs/python/ut/lib
-)
-END()
diff --git a/contrib/libs/python/ut/ya.make b/contrib/libs/python/ut/ya.make
deleted file mode 100644
index cb3cca0818a..00000000000
--- a/contrib/libs/python/ut/ya.make
+++ /dev/null
@@ -1,7 +0,0 @@
-SUBSCRIBER(spreis)
-
-RECURSE(
- lib
- py2
- py3
-) \ No newline at end of file