From: Mike Bayer Date: Sat, 17 Nov 2012 16:37:32 +0000 (-0500) Subject: - merge ben's patch with updates X-Git-Tag: rel_0_8_0b2~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=123a5349d2c13c756ecf50e26e2cecf3d0e30c98;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - merge ben's patch with updates --- 123a5349d2c13c756ecf50e26e2cecf3d0e30c98 diff --cc test/requirements.py index 07b2afb2a7,c8c9b01924..d1ee55e7de --- a/test/requirements.py +++ b/test/requirements.py @@@ -303,8 -301,15 +303,14 @@@ class DefaultRequirements(SuiteRequirem """target database can persist/return an empty string with an unbounded text.""" - return fails_if(["oracle"], - 'oracle converts empty strings to a blank space') + return exclusions.open() + @property + def unicode_data(self): + return skip_if([ + no_support("sybase", "no unicode driver support") + ]) + @property def unicode_connections(self): """Target driver must support some encoding of Unicode across the wire.""" @@@ -373,56 -383,7 +384,57 @@@ def reflects_pk_names(self): """Target driver reflects the name of primary key constraints.""" - return fails_on_everything_except('postgresql', 'oracle', 'mssql') - return fails_on_everything_except('postgresql', 'oracle', 'sybase') ++ return fails_on_everything_except('postgresql', 'oracle', 'mssql', ++ 'sybase') + + @property + def datetime(self): + """target dialect supports representation of Python + datetime.datetime() objects.""" + + return exclusions.open() + + @property + def datetime_microseconds(self): + """target dialect supports representation of Python + datetime.datetime() with microsecond objects.""" + + return skip_if(['mssql', 'mysql', 'firebird', '+zxjdbc', 'oracle']) + + @property + def datetime_historic(self): + """target dialect supports representation of Python + datetime.datetime() objects with historic (pre 1900) values.""" + + return succeeds_if(['sqlite', 'postgresql', 'firebird']) + + @property + def date(self): + """target dialect supports representation of Python + datetime.date() objects.""" + + return exclusions.open() + + @property + def date_historic(self): + """target dialect supports representation of Python + datetime.datetime() objects with historic (pre 1900) values.""" + + return succeeds_if(['sqlite', 'postgresql', 'firebird']) + + @property + def time(self): + """target dialect supports representation of Python + datetime.time() objects.""" + + return skip_if(['oracle']) + + @property + def time_microseconds(self): + """target dialect supports representation of Python + datetime.time() with microsecond objects.""" + + return skip_if(['mssql', 'mysql', 'firebird', '+zxjdbc', 'oracle']) @property def python2(self):