summaryrefslogtreecommitdiff
path: root/test/sql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-03-18 16:07:48 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-03-18 16:07:48 -0400
commitc8dfb3540adbeaab524f2c1258c58d28c63ec3f9 (patch)
tree35b0ab22d7e2c31eebc5986da416ed28d4fbae2b /test/sql
parent6238032c8de254eb4702bfea13a30dea82f7b3ca (diff)
downloadsqlalchemy-c8dfb3540adbeaab524f2c1258c58d28c63ec3f9.tar.gz
- normalize sybase version numbers
- sybase has 255 identifier length on 15, 30 earlier
Diffstat (limited to 'test/sql')
-rw-r--r--test/sql/test_labels.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/test/sql/test_labels.py b/test/sql/test_labels.py
index bcac7c01d..f67ba9855 100644
--- a/test/sql/test_labels.py
+++ b/test/sql/test_labels.py
@@ -83,15 +83,18 @@ class LongLabelsTest(TestBase, AssertsCompiledSQL):
(2, "data2"),
], repr(result)
- r = s.limit(2).offset(1).execute()
- result = []
- for row in r:
- result.append((row[table1.c.this_is_the_primarykey_column], row[table1.c.this_is_the_data_column]))
- assert result == [
- (2, "data2"),
- (3, "data3"),
- ], repr(result)
-
+ @testing.requires.offset
+ def go():
+ r = s.limit(2).offset(1).execute()
+ result = []
+ for row in r:
+ result.append((row[table1.c.this_is_the_primarykey_column], row[table1.c.this_is_the_data_column]))
+ assert result == [
+ (2, "data2"),
+ (3, "data3"),
+ ], repr(result)
+ go()
+
def test_table_alias_names(self):
if testing.against('oracle'):
self.assert_compile(