diff options
author | AlexSm <alex@ydb.tech> | 2023-12-21 15:05:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-21 15:05:38 +0100 |
commit | e98bcbc74422492351c51646dba3849a138a8ffc (patch) | |
tree | 38ad7a09b1f9c201ce8a7e3d69f2017388769224 /util | |
parent | 559d7083cd8378cb25b9e966dedcca21d413e338 (diff) | |
download | ydb-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')
-rw-r--r-- | util/digest/multi_ut.pyx | 2 | ||||
-rw-r--r-- | util/memory/blob_ut.pyx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/util/digest/multi_ut.pyx b/util/digest/multi_ut.pyx index a1f1bcbde7..f803dca779 100644 --- a/util/digest/multi_ut.pyx +++ b/util/digest/multi_ut.pyx @@ -16,4 +16,4 @@ class TestMultiHash(unittest.TestCase): self.assertEqual(value, 9973288649881090712) def test_collision(self): - self.assertNotEquals(MultiHash(1, 1, 0), MultiHash(2, 2, 0)) + self.assertNotEqual(MultiHash(1, 1, 0), MultiHash(2, 2, 0)) 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) |