summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/orm/test_mapper.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/test/orm/test_mapper.py b/test/orm/test_mapper.py
index f39e174b0..42d114f6f 100644
--- a/test/orm/test_mapper.py
+++ b/test/orm/test_mapper.py
@@ -262,31 +262,6 @@ class MapperTest(_fixtures.FixtureTest, AssertsCompiledSQL):
assert_raises(TypeError, Foo, x=5)
assert_raises(TypeError, Bar, x=5)
- def test_lru_cache_warning(self):
- users = self.tables.users
- User = self.classes.User
- m = mapper(User, users)
-
- for i in range(149):
- m._compiled_cache["key_%s" % i] = "foo"
-
- def go():
- m._compiled_cache["key_150"] = "foo"
- m._compiled_cache["key_151"] = "foo"
-
- assert_raises_message(
- sa.exc.SAWarning,
- r"Compiled statement cache for mapper Mapper.User.users is "
- "reaching its size threshold of 150, based on "
- "_compiled_cache_size of 100. ",
- go
- )
- m._compiled_cache.size_alert = None
- for i in range(152, 200):
- m._compiled_cache["key_%d" % i] = "foo"
- assert len(m._compiled_cache) < 150
-
-
def test_sort_states_comparisons(self):
"""test that _sort_states() doesn't compare
insert_order to state.key, for set of mixed