Skip to content

Commit

Permalink
Made accesstests.py work with Python 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mkfiserv committed Mar 18, 2009
1 parent e673bff commit 0e212c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/accesstests.py
Expand Up @@ -135,7 +135,7 @@ def _test_strtype(self, sqltype, value, colsize=None):
""" """
The implementation for string, Unicode, and binary tests. The implementation for string, Unicode, and binary tests.
""" """
assert colsize is None or (value is None or colsize >= len(value)), 'colsize=%s value=%s' % (colsize, 'none' if value is None else len(value)) assert colsize is None or (value is None or colsize >= len(value)), 'colsize=%s value=%s' % (colsize, (value is None) and 'none' or len(value))


if colsize: if colsize:
sql = "create table t1(n1 int not null, s1 %s(%s), s2 %s(%s))" % (sqltype, colsize, sqltype, colsize) sql = "create table t1(n1 int not null, s1 %s(%s), s2 %s(%s))" % (sqltype, colsize, sqltype, colsize)
Expand Down

0 comments on commit 0e212c8

Please sign in to comment.