aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory/blob_ut.pyx
diff options
context:
space:
mode:
authorAlexSm <alex@ydb.tech>2023-12-21 15:05:38 +0100
committerGitHub <noreply@github.com>2023-12-21 15:05:38 +0100
commite98bcbc74422492351c51646dba3849a138a8ffc (patch)
tree38ad7a09b1f9c201ce8a7e3d69f2017388769224 /util/memory/blob_ut.pyx
parent559d7083cd8378cb25b9e966dedcca21d413e338 (diff)
downloadydb-e98bcbc74422492351c51646dba3849a138a8ffc.tar.gz
Import libs 1 (#590)
* Import libs 1 * Add new file without extension * Add file missed in export config
Diffstat (limited to 'util/memory/blob_ut.pyx')
-rw-r--r--util/memory/blob_ut.pyx4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/memory/blob_ut.pyx b/util/memory/blob_ut.pyx
index 35a72996de..b4b501adc6 100644
--- a/util/memory/blob_ut.pyx
+++ b/util/memory/blob_ut.pyx
@@ -45,7 +45,7 @@ class TestBlob(unittest.TestCase):
def test_copy(self):
cdef const char* txt = "hello world"
cdef TBlob tmp = TBlob.Copy(txt, len(txt))
- self.assertNotEquals(tmp.AsCharPtr() - txt, 0)
+ self.assertNotEqual(tmp.AsCharPtr() - txt, 0)
self.assertEqual(tmp.Size(), 11)
self.assertEqual(tmp.AsCharPtr()[:tmp.Size()], "hello world")
self.assertEqual(tmp.Empty(), False)
@@ -137,5 +137,5 @@ class TestBlob(unittest.TestCase):
cdef TBlob tmp2 = tmp.DeepCopy()
self.assertEqual(tmp.AsCharPtr()[:tmp.Size()], "hello world")
self.assertEqual(tmp2.AsCharPtr()[:tmp2.Size()], "hello world")
- self.assertNotEquals(tmp2.AsCharPtr() - tmp.AsCharPtr(), 0)
+ self.assertNotEqual(tmp2.AsCharPtr() - tmp.AsCharPtr(), 0)