summaryrefslogtreecommitdiff
path: root/test/aaa_profiling/test_memusage.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/aaa_profiling/test_memusage.py')
-rw-r--r--test/aaa_profiling/test_memusage.py27
1 files changed, 26 insertions, 1 deletions
diff --git a/test/aaa_profiling/test_memusage.py b/test/aaa_profiling/test_memusage.py
index f6de1fa2f..53d7ff2e4 100644
--- a/test/aaa_profiling/test_memusage.py
+++ b/test/aaa_profiling/test_memusage.py
@@ -11,7 +11,10 @@ from sqlalchemy import MetaData, Integer, String, ForeignKey, \
from test.lib.schema import Table, Column
import sqlalchemy as sa
from sqlalchemy.sql import column
+from sqlalchemy.processors import to_decimal_processor_factory, \
+ to_unicode_processor_factory
from test.lib.util import gc_collect
+from decimal import Decimal as _python_Decimal
import gc
import weakref
from test.orm import _base
@@ -565,4 +568,26 @@ class MemUsageTest(EnsureZeroed):
dialect = SQLiteDialect()
cast.compile(dialect=dialect)
go()
-
+
+ @testing.requires.cextensions
+ def test_DecimalResultProcessor_init(self):
+ @profile_memory
+ def go():
+ to_decimal_processor_factory({}, 10)
+ go()
+
+ @testing.requires.cextensions
+ def test_DecimalResultProcessor_process(self):
+ @profile_memory
+ def go():
+ to_decimal_processor_factory(_python_Decimal, 10)(1.2)
+ go()
+
+ @testing.requires.cextensions
+ def test_UnicodeResultProcessor_init(self):
+ @profile_memory
+ def go():
+ to_unicode_processor_factory('utf8')
+ go()
+
+