Ticket #7534: no-test-db-setting-result.txt

File no-test-db-setting-result.txt, 21.9 KB (added by Peter Melvyn <peter.melvyn@…>, 7 years ago)

Charset is not specified in test settings

Line 
1======================================================================
2FAIL: Doctest: modeltests.custom_pk.models.__test__.API_TESTS
3----------------------------------------------------------------------
4Traceback (most recent call last):
5  File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 2180, in runTest
6    raise self.failureException(self.format_failure(new.getvalue()))
7AssertionError: Failed doctest test for modeltests.custom_pk.models.__test__.API_TESTS
8  File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\custom_pk\models.py", line unknown line number, in API_TESTS
9
10----------------------------------------------------------------------
11File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\custom_pk\models.py", line ?, in modeltests.custom_pk.models.__test__.API_TESTS
12Failed example:
13    emp.save()
14Exception raised:
15    Traceback (most recent call last):
16      File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 1267, in __run
17        compileflags, 1) in test.globs
18      File "<doctest modeltests.custom_pk.models.__test__.API_TESTS[34]>", line 1, in ?
19        emp.save()
20      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\base.py", line 272, in save
21        self.save_base()
22      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\base.py", line 313, in save_base
23        if manager.filter(pk=pk_val).extra(select={'a': 1}).values('a').order_by():
24      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 170, in __nonzero__
25        iter(self).next()
26      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 164, in _result_iter
27        self._fill_cache()
28      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 580, in _fill_cache
29        self._result_cache.append(self._iter.next())
30      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 606, in iterator
31        for row in self.query.results_iter():
32      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\query.py", line 200, in results_iter
33        for rows in self.execute_sql(MULTI):
34      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\query.py", line 1474, in execute_sql
35        cursor.execute(sql, params)
36      File "C:\Python24\Lib\site-packages\MySQLdb\cursors.py", line 166, in execute
37        self.errorhandler(self, exc, value)
38      File "C:\Python24\Lib\site-packages\MySQLdb\connections.py", line 35, in defaulterrorhandler
39        raise errorclass, errorvalue
40    OperationalError: (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='")
41
42
43======================================================================
44FAIL: Doctest: modeltests.serializers.models.__test__.API_TESTS
45----------------------------------------------------------------------
46Traceback (most recent call last):
47  File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 2180, in runTest
48    raise self.failureException(self.format_failure(new.getvalue()))
49AssertionError: Failed doctest test for modeltests.serializers.models.__test__.API_TESTS
50  File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line unknown line number, in API_TESTS
51
52----------------------------------------------------------------------
53File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS
54Failed example:
55    for obj in serializers.deserialize("json", json):
56        obj.save()
57Exception raised:
58    Traceback (most recent call last):
59      File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 1267, in __run
60        compileflags, 1) in test.globs
61      File "<doctest modeltests.serializers.models.__test__.API_TESTS[42]>", line 2, in ?
62        obj.save()
63      File "C:\Python24\Lib\site-packages\django-trunk\django\core\serializers\base.py", line 168, in save
64        models.Model.save_base(self.object, raw=True)
65      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\base.py", line 334, in save_base
66        result = manager._insert(values, return_id=update_pk)
67      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\manager.py", line 127, in _insert
68        return insert_query(self.model, values, **kwargs)
69      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 831, in insert_query
70        return query.execute_sql(return_id)
71      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\subqueries.py", line 300, in execute_sql
72        cursor = super(InsertQuery, self).execute_sql(None)
73      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\query.py", line 1474, in execute_sql
74        cursor.execute(sql, params)
75      File "C:\Python24\Lib\site-packages\MySQLdb\cursors.py", line 166, in execute
76        self.errorhandler(self, exc, value)
77      File "C:\Python24\Lib\site-packages\MySQLdb\connections.py", line 35, in defaulterrorhandler
78        raise errorclass, errorvalue
79    IntegrityError: (1452, 'Cannot add or update a child row: a foreign key constraint fails (`test_bizwss/serializers_article`, CONSTRAINT `author_id_refs_id_8fd3731` FOREIGN KEY (`author_id`) REFERENCES `serializers_author` (`id`))')
80----------------------------------------------------------------------
81File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS
82Failed example:
83    article = Article.objects.get(pk=3)
84Exception raised:
85    Traceback (most recent call last):
86      File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 1267, in __run
87        compileflags, 1) in test.globs
88      File "<doctest modeltests.serializers.models.__test__.API_TESTS[45]>", line 1, in ?
89        article = Article.objects.get(pk=3)
90      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\manager.py", line 82, in get
91        return self.get_query_set().get(*args, **kwargs)
92      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 282, in get
93        raise self.model.DoesNotExist("%s matching query does not exist."
94    DoesNotExist: Article matching query does not exist.
95----------------------------------------------------------------------
96File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS
97Failed example:
98    article
99Exception raised:
100    Traceback (most recent call last):
101      File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 1267, in __run
102        compileflags, 1) in test.globs
103      File "<doctest modeltests.serializers.models.__test__.API_TESTS[46]>", line 1, in ?
104        article
105    NameError: name 'article' is not defined
106----------------------------------------------------------------------
107File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS
108Failed example:
109    article.categories.all()
110Exception raised:
111    Traceback (most recent call last):
112      File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 1267, in __run
113        compileflags, 1) in test.globs
114      File "<doctest modeltests.serializers.models.__test__.API_TESTS[47]>", line 1, in ?
115        article.categories.all()
116    NameError: name 'article' is not defined
117----------------------------------------------------------------------
118File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS
119Failed example:
120    article.author
121Exception raised:
122    Traceback (most recent call last):
123      File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 1267, in __run
124        compileflags, 1) in test.globs
125      File "<doctest modeltests.serializers.models.__test__.API_TESTS[48]>", line 1, in ?
126        article.author
127    NameError: name 'article' is not defined
128----------------------------------------------------------------------
129File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS
130Failed example:
131    print serializers.serialize("json", Article.objects.all(), fields=('headline','pub_date'))
132Expected:
133    [{"pk": 1, "model": "serializers.article", "fields": {"headline": "Just kidding; I love TV poker", "pub_date": "2006-06-16 11:00:00"}}, {"pk": 2, "model": "serializers.article", "fields": {"headline": "Time to reform copyright", "pub_date": "2006-06-16 13:00:11"}}, {"pk": 3, "model": "serializers.article", "fields": {"headline": "Forward references pose no problem", "pub_date": "2006-06-16 15:00:00"}}]
134Got:
135    [{"pk": 1, "model": "serializers.article", "fields": {"headline": "Just kidding; I love TV poker", "pub_date": "2006-06-16 11:00:00"}}, {"pk": 2, "model": "serializers.article", "fields": {"headline": "Time to reform copyright", "pub_date": "2006-06-16 13:00:11"}}]
136----------------------------------------------------------------------
137File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS
138Failed example:
139    ac.save(); mv.save()
140Exception raised:
141    Traceback (most recent call last):
142      File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 1267, in __run
143        compileflags, 1) in test.globs
144      File "<doctest modeltests.serializers.models.__test__.API_TESTS[52]>", line 1, in ?
145        ac.save(); mv.save()
146      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\base.py", line 272, in save
147        self.save_base()
148      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\base.py", line 313, in save_base
149        if manager.filter(pk=pk_val).extra(select={'a': 1}).values('a').order_by():
150      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 170, in __nonzero__
151        iter(self).next()
152      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 164, in _result_iter
153        self._fill_cache()
154      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 580, in _fill_cache
155        self._result_cache.append(self._iter.next())
156      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 606, in iterator
157        for row in self.query.results_iter():
158      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\query.py", line 200, in results_iter
159        for rows in self.execute_sql(MULTI):
160      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\query.py", line 1474, in execute_sql
161        cursor.execute(sql, params)
162      File "C:\Python24\Lib\site-packages\MySQLdb\cursors.py", line 166, in execute
163        self.errorhandler(self, exc, value)
164      File "C:\Python24\Lib\site-packages\MySQLdb\connections.py", line 35, in defaulterrorhandler
165        raise errorclass, errorvalue
166    OperationalError: (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='")
167----------------------------------------------------------------------
168File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS
169Failed example:
170    print serializers.serialize("json", [mv])
171Exception raised:
172    Traceback (most recent call last):
173      File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 1267, in __run
174        compileflags, 1) in test.globs
175      File "<doctest modeltests.serializers.models.__test__.API_TESTS[53]>", line 1, in ?
176        print serializers.serialize("json", [mv])
177      File "C:\Python24\Lib\site-packages\django-trunk\django\core\serializers\__init__.py", line 72, in serialize
178        s.serialize(queryset, **options)
179      File "C:\Python24\Lib\site-packages\django-trunk\django\core\serializers\base.py", line 48, in serialize
180        self.handle_fk_field(obj, field)
181      File "C:\Python24\Lib\site-packages\django-trunk\django\core\serializers\python.py", line 41, in handle_fk_field
182        related = getattr(obj, field.name)
183      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\fields\related.py", line 236, in __get__
184        rel_obj = self.field.rel.to._default_manager.get(**params)
185      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\manager.py", line 82, in get
186        return self.get_query_set().get(*args, **kwargs)
187      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 278, in get
188        num = len(clone)
189      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 139, in __len__
190        self._result_cache = list(self.iterator())
191      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 248, in iterator
192        for row in self.query.results_iter():
193      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\query.py", line 200, in results_iter
194        for rows in self.execute_sql(MULTI):
195      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\query.py", line 1474, in execute_sql
196        cursor.execute(sql, params)
197      File "C:\Python24\Lib\site-packages\MySQLdb\cursors.py", line 166, in execute
198        self.errorhandler(self, exc, value)
199      File "C:\Python24\Lib\site-packages\MySQLdb\connections.py", line 35, in defaulterrorhandler
200        raise errorclass, errorvalue
201    OperationalError: (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='")
202----------------------------------------------------------------------
203File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS
204Failed example:
205    list(serializers.deserialize('json', serializers.serialize('json', [mv])))[0].object.title
206Exception raised:
207    Traceback (most recent call last):
208      File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 1267, in __run
209        compileflags, 1) in test.globs
210      File "<doctest modeltests.serializers.models.__test__.API_TESTS[54]>", line 1, in ?
211        list(serializers.deserialize('json', serializers.serialize('json', [mv])))[0].object.title
212      File "C:\Python24\Lib\site-packages\django-trunk\django\core\serializers\__init__.py", line 72, in serialize
213        s.serialize(queryset, **options)
214      File "C:\Python24\Lib\site-packages\django-trunk\django\core\serializers\base.py", line 48, in serialize
215        self.handle_fk_field(obj, field)
216      File "C:\Python24\Lib\site-packages\django-trunk\django\core\serializers\python.py", line 41, in handle_fk_field
217        related = getattr(obj, field.name)
218      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\fields\related.py", line 236, in __get__
219        rel_obj = self.field.rel.to._default_manager.get(**params)
220      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\manager.py", line 82, in get
221        return self.get_query_set().get(*args, **kwargs)
222      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 278, in get
223        num = len(clone)
224      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 139, in __len__
225        self._result_cache = list(self.iterator())
226      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 248, in iterator
227        for row in self.query.results_iter():
228      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\query.py", line 200, in results_iter
229        for rows in self.execute_sql(MULTI):
230      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\query.py", line 1474, in execute_sql
231        cursor.execute(sql, params)
232      File "C:\Python24\Lib\site-packages\MySQLdb\cursors.py", line 166, in execute
233        self.errorhandler(self, exc, value)
234      File "C:\Python24\Lib\site-packages\MySQLdb\connections.py", line 35, in defaulterrorhandler
235        raise errorclass, errorvalue
236    OperationalError: (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='")
237----------------------------------------------------------------------
238File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS
239Failed example:
240    print serializers.serialize("json", [mv2])
241Exception raised:
242    Traceback (most recent call last):
243      File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 1267, in __run
244        compileflags, 1) in test.globs
245      File "<doctest modeltests.serializers.models.__test__.API_TESTS[56]>", line 1, in ?
246        print serializers.serialize("json", [mv2])
247      File "C:\Python24\Lib\site-packages\django-trunk\django\core\serializers\__init__.py", line 72, in serialize
248        s.serialize(queryset, **options)
249      File "C:\Python24\Lib\site-packages\django-trunk\django\core\serializers\base.py", line 48, in serialize
250        self.handle_fk_field(obj, field)
251      File "C:\Python24\Lib\site-packages\django-trunk\django\core\serializers\python.py", line 41, in handle_fk_field
252        related = getattr(obj, field.name)
253      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\fields\related.py", line 236, in __get__
254        rel_obj = self.field.rel.to._default_manager.get(**params)
255      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\manager.py", line 82, in get
256        return self.get_query_set().get(*args, **kwargs)
257      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 278, in get
258        num = len(clone)
259      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 139, in __len__
260        self._result_cache = list(self.iterator())
261      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 248, in iterator
262        for row in self.query.results_iter():
263      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\query.py", line 200, in results_iter
264        for rows in self.execute_sql(MULTI):
265      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\query.py", line 1474, in execute_sql
266        cursor.execute(sql, params)
267      File "C:\Python24\Lib\site-packages\MySQLdb\cursors.py", line 166, in execute
268        self.errorhandler(self, exc, value)
269      File "C:\Python24\Lib\site-packages\MySQLdb\connections.py", line 35, in defaulterrorhandler
270        raise errorclass, errorvalue
271    OperationalError: (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='")
272----------------------------------------------------------------------
273File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\serializers\models.py", line ?, in modeltests.serializers.models.__test__.API_TESTS
274Failed example:
275    print list(serializers.deserialize('json', serializers.serialize('json', [mv2])))[0].object.id
276Exception raised:
277    Traceback (most recent call last):
278      File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 1267, in __run
279        compileflags, 1) in test.globs
280      File "<doctest modeltests.serializers.models.__test__.API_TESTS[57]>", line 1, in ?
281        print list(serializers.deserialize('json', serializers.serialize('json', [mv2])))[0].object.id
282      File "C:\Python24\Lib\site-packages\django-trunk\django\core\serializers\__init__.py", line 72, in serialize
283        s.serialize(queryset, **options)
284      File "C:\Python24\Lib\site-packages\django-trunk\django\core\serializers\base.py", line 48, in serialize
285        self.handle_fk_field(obj, field)
286      File "C:\Python24\Lib\site-packages\django-trunk\django\core\serializers\python.py", line 41, in handle_fk_field
287        related = getattr(obj, field.name)
288      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\fields\related.py", line 236, in __get__
289        rel_obj = self.field.rel.to._default_manager.get(**params)
290      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\manager.py", line 82, in get
291        return self.get_query_set().get(*args, **kwargs)
292      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 278, in get
293        num = len(clone)
294      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 139, in __len__
295        self._result_cache = list(self.iterator())
296      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 248, in iterator
297        for row in self.query.results_iter():
298      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\query.py", line 200, in results_iter
299        for rows in self.execute_sql(MULTI):
300      File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\query.py", line 1474, in execute_sql
301        cursor.execute(sql, params)
302      File "C:\Python24\Lib\site-packages\MySQLdb\cursors.py", line 166, in execute
303        self.errorhandler(self, exc, value)
304      File "C:\Python24\Lib\site-packages\MySQLdb\connections.py", line 35, in defaulterrorhandler
305        raise errorclass, errorvalue
306    OperationalError: (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='")
307
308
309----------------------------------------------------------------------
310Ran 2 tests in 0.765s
311
312FAILED (failures=2)
Back to Top