Skip to content

Runing tests with --xml fails with UnicodeEncodeError #17

Open
@francisdb

Description

@francisdb

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions