SyntaxErrors in test suite with Python 3.2
Issue #2980
resolved
$ python3.2 -m compileall -fq test
*** Error compiling 'test/dialect/test_sqlite.py'...
File "test/dialect/test_sqlite.py", line 114
[(u'2004-05-21T00:00:00',), (u'2010-10-15T12:37:00',)]
^
SyntaxError: invalid syntax
*** Error compiling 'test/orm/test_default_strategies.py'...
File "test/orm/test_default_strategies.py", line 164
eq_(q.all(), [(u'jack',), (u'ed',), (u'fred',), (u'chuck',)])
^
SyntaxError: invalid syntax
*** Error compiling 'test/orm/test_subquery_relations.py'...
File "test/orm/test_subquery_relations.py", line 1704
(1, u'/1.jpg', 1, 1),
^
SyntaxError: invalid syntax
*** Error compiling 'test/sql/test_update.py'...
File "test/sql/test_update.py", line 309
checkparams={u'addresses_name': 'new address', 'name': 'newname'},
^
SyntaxError: invalid syntax
Comments (4)
-
repo owner -
repo owner - marked as minor
python 3.2 is obsolete in any case
-
reporter - attached sqlalchemy-python-3.2.patch
This patch works for me. Tests still pass with Python 2.6 and 2.7.
-
repo owner - changed status to resolved
- Fixed a few errant
u''
strings that would prevent tests from passing in Py3.2. Patch courtesy Arfrever Frehtes Taifersar Arahesis. fixes#2980
→ <<cset 5d2bfc4df45b>>
- Log in to comment
feel free to provide a pullreq for this.