Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runing tests with --xml fails with UnicodeEncodeError #17

Open
francisdb opened this issue Dec 20, 2010 · 0 comments
Open

Runing tests with --xml fails with UnicodeEncodeError #17

francisdb opened this issue Dec 20, 2010 · 0 comments

Comments

@francisdb
Copy link

This runs correctly without --xml

 Traceback (most recent call last):
   File "./manage.py", line 11, in <module>
     execute_manager(settings)
   File "/usr/lib/pymodules/python2.6/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/usr/lib/pymodules/python2.6/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/pymodules/python2.6/django/core/management/base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/pymodules/python2.6/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python2.6/dist-packages/django_test_extensions-0.9-py2.6.egg/test_extensions/management/commands/test.py", line 125, in handle
    failures = test_runner(**test_options).run_tests(test_labels)
  File "/usr/lib/pymodules/python2.6/django/test/simple.py", line 314, in run_tests
    result = self.run_suite(suite)
  File "/usr/local/lib/python2.6/dist-packages/django_test_extensions-0.9-py2.6.egg/test_extensions/testrunners/xmloutput.py", line 12, in run_suite
    return XMLTestRunner(verbosity=self.verbosity).run(suite)
  File "/usr/local/lib/python2.6/dist-packages/django_test_extensions-0.9-py2.6.egg/test_extensions/testrunners/xmlunit/unittest.py", line 815, in run
    self._writeReport(result,self.totalTime)
  File "/usr/local/lib/python2.6/dist-packages/django_test_extensions-0.9-py2.6.egg/test_extensions/testrunners/xmlunit/unittest.py", line 833, in _writeReport
    self.output.write(self.stdout.read())
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 569: ordinal not in range(128)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant