aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/python/ut/lib
diff options
context:
space:
mode:
authorspreis <spreis@yandex-team.ru>2022-02-10 16:47:13 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:13 +0300
commitb49848d6e361b76904f094b7d5e10d6edea75afe (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /contrib/libs/python/ut/lib
parentbcd1126cbd5d445cd0665d295198aa39c6ab8cbe (diff)
downloadydb-b49848d6e361b76904f094b7d5e10d6edea75afe.tar.gz
Restoring authorship annotation for <spreis@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/python/ut/lib')
-rw-r--r--contrib/libs/python/ut/lib/test.cpp40
-rw-r--r--contrib/libs/python/ut/lib/test.h14
-rw-r--r--contrib/libs/python/ut/lib/ya.make12
3 files changed, 33 insertions, 33 deletions
diff --git a/contrib/libs/python/ut/lib/test.cpp b/contrib/libs/python/ut/lib/test.cpp
index 824b7460e17..e3aabc8889f 100644
--- a/contrib/libs/python/ut/lib/test.cpp
+++ b/contrib/libs/python/ut/lib/test.cpp
@@ -1,21 +1,21 @@
-#include "test.h"
-
-#include <Python.h>
+#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();
-}
+
+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
index 4bdbe672ac1..1bf824ebea8 100644
--- a/contrib/libs/python/ut/lib/test.h
+++ b/contrib/libs/python/ut/lib/test.h
@@ -1,7 +1,7 @@
-#pragma once
-
-class TTestPyInvoker {
-public:
- TTestPyInvoker();
- const char* GetVersion();
-};
+#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
index a67c3e254eb..cfa0aaa612f 100644
--- a/contrib/libs/python/ut/lib/ya.make
+++ b/contrib/libs/python/ut/lib/ya.make
@@ -1,17 +1,17 @@
-OWNER(spreis)
-
-PY23_LIBRARY()
+OWNER(spreis)
+
+PY23_LIBRARY()
WITHOUT_LICENSE_TEXTS()
LICENSE(YandexOpen)
-PEERDIR(
+PEERDIR(
library/cpp/testing/unittest
-)
+)
SRCS(
test.cpp
)
-END()
+END()