Hi all, I wanted to make sure that all unit tests will pass after #3030 fix and run Django unit tests on trunk updated to r7703 on Windows, Python 2.4 and MySQL 5.0.37.
But I found that some test failes: 1. If I've run all tests, I get error: Traceback (most recent call last): File "C:\Python24\Lib\site-packages\django-trunk\tests\runtests.py", line 183, in ? django_tests(int(options.verbosity), options.interactive, args) File "C:\Python24\Lib\site-packages\django-trunk\tests\runtests.py", line 153, in django_tests failures = run_tests(test_labels, verbosity=verbosity, interactive=interactive, extra_tests=extra_tests) File "C:\Python24\Lib\site-packages\django-trunk\django\test\simple.py", line 136, in run_tests suite.addTest(build_suite(app)) File "C:\Python24\Lib\site-packages\django-trunk\django\test\simple.py", line 59, in build_suite test_module = get_tests(app_module) File "C:\Python24\Lib\site-packages\django-trunk\django\test\simple.py", line 17, in get_tests test_module = __import__('.'.join(app_path + [TEST_MODULE]), {}, {}, TEST_MODULE) File "C:\Python24\Lib\site-packages\django-trunk\tests\regressiontests\templates\tests.py", line 23, in ? from loaders import * File "C:\Python24\Lib\site-packages\django-trunk\tests\regressiontests\templates\loaders.py", line 13, in ? import pkg_resources ImportError: No module named pkg_resources 2. If I've run single tests, I get error in some particular tests as well, e.g. FAIL: Doctest: modeltests.basic.models.__test__.API_TESTS ---------------------------------------------------------------------- ... Failed example: Article.objects.get(pk=a.id).headline Expected: u'\u6797\u539f \u3081\u3050\u307f' Got: u'Article 12' ### FAIL: Doctest: modeltests.custom_pk.models.__test__.API_TESTS ---------------------------------------------------------------------- File "C:\Python24\Lib\site-packages\django-trunk\tests\modeltests\custom_pk\models.py", line ?, in modeltests.custom_pk.models.__test__.API_TESTS Failed example: emp.save() Exception raised: Traceback (most recent call last): File "C:\Python24\Lib\site-packages\django-trunk\django\test\_doctest.py", line 1267, in __run compileflags, 1) in test.globs File "<doctest modeltests.custom_pk.models.__test__.API_TESTS[34]>", line 1, in ? emp.save() File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\base.py", line 272, in save self.save_base() File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\base.py", line 313, in save_base if manager.filter(pk=pk_val).extra(select={'a': 1}).values('a').order_by(): File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 84, in __nonzero__ iter(self).next() File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 78, in _result_iter self._fill_cache() File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 494, in _fill_cache self._result_cache.append(self._iter.next()) File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\query.py", line 520, in iterator for row in self.query.results_iter(): File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\query.py", line 200, in results_iter for rows in self.execute_sql(MULTI): File "C:\Python24\Lib\site-packages\django-trunk\django\db\models\sql\query.py", line 1474, in execute_sql cursor.execute(sql, params) File "C:\Python24\Lib\site-packages\MySQLdb\cursors.py", line 166, in execute self.errorhandler(self, exc, value) File "C:\Python24\Lib\site-packages\MySQLdb\connections.py", line 35, in defaulterrorhandler raise errorclass, errorvalue OperationalError: (1267, "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='") etc... ### Is there anything I've missed that Django unit tests do not pass on my installation? Thx, Peter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---