id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 17116 Changing the default encoding breaks test_broken_unicode (regressiontests.model_regress.tests.ModelTests) Raphaël Hertzog nobody "This bug has been reported in the Debian bug tracking system: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=646634 If you add the lines below to /etc/python2.7/sitecustomize.py: {{{ import sys sys.setdefaultencoding('utf8') }}} Then you get this test failure: {{{ FAIL: test_broken_unicode (regressiontests.model_regress.tests.ModelTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ""/root/python-django-1.3.1/tests/regressiontests/model_regress/tests.py"", line 146, in test_broken_unicode self.assertEqual(repr(b), """") AssertionError: '' != '' }}} I know it's not a good idea to change the default encoding but maybe this test could be skipped if sys.getdefaultencoding() doesn't return ascii." Bug closed Testing framework 1.3 Normal fixed Accepted 1 0 0 0 0 0