Getting the error below when I run DJango test  please let me know the 
reason behind this .Thanks You

=====================================================================
ERROR: test_patterns_escape (expressions.tests.ExpressionsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"C:\Users\IBM_ADMIN\PythonWorkspace\DJangoTestCases\src\DJangoTestCases\tests\expressions\tests.py",
 
line 383, in test_patterns_escape
    ordered=False)
  File "C:\Python27\lib\site-packages\django\test\testcases.py", line 883, 
in assertQuerysetEqual
    items = six.moves.map(transform, qs)
  File "C:\Python27\lib\site-packages\django\db\models\query.py", line 162, 
in __iter__
    self._fetch_all()
  File "C:\Python27\lib\site-packages\django\db\models\query.py", line 965, 
in _fetch_all
    self._result_cache = list(self.iterator())
  File "C:\Python27\lib\site-packages\django\db\models\query.py", line 238, 
in iterator
    results = compiler.execute_sql()
  File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py", 
line 829, in execute_sql
    sql, params = self.as_sql()
  File 
"c:\python27\lib\site-packages\ibm_db_django-1.0.7-py2.7.egg\ibm_db_django\compiler.py",
 
line 48, in as_sql
    return super( SQLCompiler, self ).as_sql( False, with_col_aliases )
  File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py", 
line 387, in as_sql
    where, w_params = self.compile(self.query.where)
  File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py", 
line 357, in compile
    sql, params = node.as_sql(self, self.connection)
  File "C:\Python27\lib\site-packages\django\db\models\sql\where.py", line 
104, in as_sql
    sql, params = compiler.compile(child)
  File "C:\Python27\lib\site-packages\django\db\models\sql\compiler.py", 
line 357, in compile
    sql, params = node.as_sql(self, self.connection)
  File "C:\Python27\lib\site-packages\django\db\models\lookups.py", line 
213, in as_sql
    rhs_sql = self.get_rhs_op(connection, rhs_sql)
  File "C:\Python27\lib\site-packages\django\db\models\lookups.py", line 
325, in get_rhs_op
    pattern = 
connection.pattern_ops[self.lookup_name].format(connection.pattern_esc)
AttributeError: 'DatabaseWrapper' object has no attribute 'pattern_ops'

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/98d90f07-7f12-45d3-9f5d-d017f73ae786%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to