From 5b15a972b574d23052536b0be8e959a1786c210f Mon Sep 17 00:00:00 2001 From: nimlgen <138685161+nimlgen@users.noreply.github.com> Date: Thu, 7 Sep 2023 21:27:31 +0300 Subject: [PATCH] no functions with same names in test/ (#1811) --- ruff.toml | 1 - test/test_cache_collector.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ruff.toml b/ruff.toml index ff5cc35b3c..9e3078b393 100644 --- a/ruff.toml +++ b/ruff.toml @@ -37,7 +37,6 @@ exclude = [ "F541", "E722", "E731", - "F811", "F821", "F841", ] diff --git a/test/test_cache_collector.py b/test/test_cache_collector.py index a7c8b26894..2989f97d32 100644 --- a/test/test_cache_collector.py +++ b/test/test_cache_collector.py @@ -183,7 +183,7 @@ class TestCacheCollector(unittest.TestCase): assert cache[0][1][0] == cache[3][1][0], "Output buffers from 1st and 4th should be the same" FAKE_GLOBAL_ALLOCATOR = None - def test_cache_collector_optimize_when_not_cached_anymore(self): + def test_cache_collector_mark_output_buffer(self): global FAKE_GLOBAL_ALLOCATOR FAKE_GLOBAL_ALLOCATOR = FakeAllocator(256) output_buffer = FakeBuffer(240, dtypes.float32) @@ -201,7 +201,7 @@ class TestCacheCollector(unittest.TestCase): assert cache[1][1][2] == inps[1], "Input should be on its place." assert cache[-1][1][0] == out, "Output does not match." assert cache[0][1][0] != cache[3][1][0], "Cannot reuse 4th output buffer, it's an output buffer which might ovewrite itself" - assert get_bufs_count(cache) == 7, "Should have 6 buffers in total" + assert get_bufs_count(cache) == 7, "Should have 7 buffers in total" FAKE_GLOBAL_ALLOCATOR = None if __name__ == "__main__":