bobber6467 / python-nose

Automatically exported from code.google.com/p/python-nose
0 stars 0 forks source link

Encoding problem? #457

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
fetch https://bitbucket.org/dreamkxd/hgsubversion.svnmeta
install subvertpy on Windows, Python 2.7.1

https://bitbucket.org/dreamkxd/hgsubversion.svnmeta/downloads/subvertpy-0.8.8.wi
n32-py2.7.exe

D:\CI\bld\hgsubversion.svnmeta\tests>nosetests --cover-html
................................................................................
............................ETraceback (most recent call las
t):
  File "D:\CI\Tools\Building\Python\Scripts\nosetests-script.py", line 9, in <module>
    load_entry_point('nose==1.1.2', 'console_scripts', 'nosetests')()
  File "D:\CI\Tools\Building\Python\lib\site-packages\nose\core.py", line 118, in __init__
    **extra_args)
  File "D:\CI\Tools\Building\Python\lib\unittest\main.py", line 95, in __init__
    self.runTests()
  File "D:\CI\Tools\Building\Python\lib\site-packages\nose\core.py", line 197, in runTests
    result = self.testRunner.run(self.test)
  File "D:\CI\Tools\Building\Python\lib\site-packages\nose\core.py", line 61, in run
    test(result)
  File "D:\CI\Tools\Building\Python\lib\site-packages\nose\suite.py", line 176, in __call__
    return self.run(*arg, **kw)
  File "D:\CI\Tools\Building\Python\lib\site-packages\nose\suite.py", line 223, in run
    test(orig)
  File "D:\CI\Tools\Building\Python\lib\unittest\suite.py", line 65, in __call__
    return self.run(*args, **kwds)
  File "D:\CI\Tools\Building\Python\lib\site-packages\nose\suite.py", line 74, in run
    test(result)
  File "D:\CI\Tools\Building\Python\lib\site-packages\nose\suite.py", line 176, in __call__
    return self.run(*arg, **kw)
  File "D:\CI\Tools\Building\Python\lib\site-packages\nose\suite.py", line 223, in run
    test(orig)
  File "D:\CI\Tools\Building\Python\lib\site-packages\nose\suite.py", line 176, in __call__
    return self.run(*arg, **kw)
  File "D:\CI\Tools\Building\Python\lib\site-packages\nose\suite.py", line 223, in run
    test(orig)
  File "D:\CI\Tools\Building\Python\lib\site-packages\nose\case.py", line 45, in __call__
    return self.run(*arg, **kwarg)
  File "D:\CI\Tools\Building\Python\lib\site-packages\nose\case.py", line 138, in run
    result.addError(self, err)
  File "D:\CI\Tools\Building\Python\lib\site-packages\nose\proxy.py", line 131, in addError
    formatted = plugins.formatError(self.test, err)
  File "D:\CI\Tools\Building\Python\lib\site-packages\nose\plugins\manager.py", line 94, in __call__
    return self.call(*arg, **kw)
  File "D:\CI\Tools\Building\Python\lib\site-packages\nose\plugins\manager.py", line 136, in chain
    result = meth(*arg, **kw)
  File "D:\CI\Tools\Building\Python\lib\site-packages\nose\plugins\capture.py", line 73, in formatError
    test.capturedOutput = output = self.buffer
  File "D:\CI\Tools\Building\Python\lib\site-packages\nose\plugins\capture.py", line 125, in _get_buffer
    return self._buf.getvalue()
  File "D:\CI\Tools\Building\Python\lib\StringIO.py", line 270, in getvalue
    self.buf += ''.join(self.buflist)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal 
not in range(128)

D:\CI\bld\hgsubversion.svnmeta\tests>nosetests
..
What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by luoyongg...@gmail.com on 16 Oct 2011 at 5:03