Permalink
Browse files

Made accesstests.py work with Python 2.4

  • Loading branch information...
1 parent e673bff commit 0e212c8df466f95aa1cadee5797cf6faa6fdacda Michael Kleehammer committed Mar 18, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/accesstests.py
View
@@ -135,7 +135,7 @@ def _test_strtype(self, sqltype, value, colsize=None):
"""
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:
sql = "create table t1(n1 int not null, s1 %s(%s), s2 %s(%s))" % (sqltype, colsize, sqltype, colsize)

0 comments on commit 0e212c8

Please sign in to comment.