'description_encoding',
encoding)
- self._description_decoder = processors.to_unicode_processor_factory(
+ if self.description_encoding:
+ self._description_decoder = processors.to_unicode_processor_factory(
self.description_encoding
)
self._encoder = codecs.getencoder(self.encoding)
cls.dialect = default.DefaultDialect()
@profiling.function_call_count(versions={'2.7':58, '2.6':58,
- '3.0':77, '3.1':77})
+ '3':64})
def test_insert(self):
t1.insert().compile(dialect=self.dialect)
def test_update(self):
t1.update().compile(dialect=self.dialect)
- @profiling.function_call_count(versions={'2.6':110, '2.7':110, '2.4': 81, '3':132})
+ @profiling.function_call_count(versions={'2.6':110, '2.7':110, '2.4': 81, '3':115})
def test_update_whereclause(self):
t1.update().where(t1.c.c2==12).compile(dialect=self.dialect)
@profiling.function_call_count(versions={'2.7':148, '2.6':148,
- '3.0':208, '3.1':208})
+ '3':161})
def test_select(self):
s = select([t1], t1.c.c2==t2.c.c1)
s.compile(dialect=self.dialect)
# bigger operation so using a small variance
@profiling.function_call_count(80, variance=0.05,
- versions={'2.4': 64, '2.5':94, '3': 89})
+ versions={'2.4': 64, '2.5':94, '3': 83})
def go():
return sess2.merge(p1, load=False)
p2 = go()