[pypy-issue] [issue908] Django tests failing

Alex Gaynor tracker at bugs.pypy.org
Fri Oct 14 18:23:23 CEST 2011


New submission from Alex Gaynor <alex.gaynor at gmail.com>:

With the latest PyPy and trunk of Django I consistantly get:


alex at alex-gaynor-laptop:~/projects/django$ PYTHONPATH=`pwd` 
~/projects/pypy/pypy-c tests/runtests.py --settings=test_sqlite --failfast
Creating test database for alias 'default'...
Creating test database for alias 'other'...
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
.......................................s........................................
........................................................s.......................
................................................................................
.....................................s..........................................
................................................s...............................
................................................................................
................................................................................
................................................................................
................................................................................
...............................x................................................
................................................................................
.............................................s..................................
................................................................................
......................................................s.........................
................................................................................
................................................................................
...................x...........................................s..........s.....
................................................................................
................................................................................
................................................................................
................................................................................
................s...................................................ss..........
.x..............................................................................
................................................................................
............................................s......s...s........E
======================================================================
ERROR: test_booleanfieldlistfilter 
(regressiontests.admin_filters.tests.ListFiltersTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/home/alex/projects/django/tests/regressiontests/admin_filters/tests.py", line 
345, in test_booleanfieldlistfilter
    self.verify_booleanfieldlistfilter(modeladmin)
  File 
"/home/alex/projects/django/tests/regressiontests/admin_filters/tests.py", line 
359, in verify_booleanfieldlistfilter
    queryset = changelist.get_query_set(request)
  File "/home/alex/projects/django/django/contrib/admin/views/main.py", line 
299, in get_query_set
    self.filter_specs, self.has_filters = self.get_filters(request, 
use_distinct)
  File "/home/alex/projects/django/django/contrib/admin/views/main.py", line 
110, in get_filters
    self.model, self.model_admin, field_path=field_path)
  File "/home/alex/projects/django/django/contrib/admin/filters.py", line 142, 
in create
    model, model_admin, field_path=field_path)
  File "/home/alex/projects/django/django/contrib/admin/filters.py", line 163, 
in __init__
    self.lookup_choices = field.get_choices(include_blank=False)
  File "/home/alex/projects/django/django/db/models/fields/__init__.py", line 
399, in get_choices
    self.rel.limit_choices_to)]
  File "/home/alex/projects/django/django/db/models/query.py", line 117, in 
_result_iter
    self._fill_cache()
  File "/home/alex/projects/django/django/db/models/query.py", line 855, in 
_fill_cache
    self._result_cache.append(self._iter.next())
  File "/home/alex/projects/django/django/db/models/query.py", line 288, in 
iterator
    for row in compiler.results_iter():
  File "/home/alex/projects/django/django/db/models/sql/compiler.py", line 701, 
in results_iter
    for rows in self.execute_sql(MULTI):
  File "/home/alex/projects/django/django/db/models/sql/compiler.py", line 756, 
in execute_sql
    cursor.execute(sql, params)
  File "/home/alex/projects/django/django/db/backends/sqlite3/base.py", line 
271, in execute
    return Database.Cursor.execute(self, query, params)
  File "/home/alex/projects/pypy/lib_pypy/_sqlite3.py", line 737, in execute
    self.statement = self.connection.statement_cache.get(sql, self, 
self.row_factory)
  File "/home/alex/projects/pypy/lib_pypy/_sqlite3.py", line 289, in get
    stat = Statement(self.connection, sql)
  File "/home/alex/projects/pypy/lib_pypy/_sqlite3.py", line 930, in __init__
    raise self.con._get_exception(ret)
DatabaseError: near ""."": syntax error

----------------------------------------------------------------------
Ran 2385 tests in 176.376s

FAILED (errors=1, skipped=14, expected failures=3)
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...



Looks to be a ctypes bug of some sort.

----------
messages: 3302
nosy: agaynor, pypy-issue
priority: bug
status: unread
title: Django tests failing

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue908>
________________________________________


More information about the pypy-issue mailing list