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

UnicodeDecodeError in doctests on openSUSE Leap #276

Closed
jayvdb opened this issue Jul 8, 2019 · 1 comment
Closed

UnicodeDecodeError in doctests on openSUSE Leap #276

jayvdb opened this issue Jul 8, 2019 · 1 comment

Comments

@jayvdb
Copy link
Member

jayvdb commented Jul 8, 2019

Very likely caused by python modules which do not declare the encoding of the file.

[   62s] ERROR: Failure: UnicodeDecodeError ('ascii' codec can't decode byte 0xe6 in position 89: ordinal not in range(128))
[   62s] ----------------------------------------------------------------------
[   62s] Traceback (most recent call last):
[   62s]   File "/usr/lib/python3.6/site-packages/nose/failure.py", line 39, in runTest
[   62s]     raise self.exc_val.with_traceback(self.tb)
[   62s]   File "/usr/lib/python3.6/site-packages/nose/plugins/manager.py", line 154, in generate
[   62s]     for r in result:
[   62s]   File "/usr/lib/python3.6/site-packages/nose/plugins/doctests.py", line 264, in loadTestsFromFile
[   62s]     doc = dh.read()
[   62s]   File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode
[   62s]     return codecs.ascii_decode(input, self.errors)[0]
[   62s] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 89: ordinal not in range(128)

https://build.opensuse.org/package/show/home:jayvdb:moban/python-moban

It could be that openSUSE Leap has an older nose, or some other dependency than openSUSE Tumbleweed.

@jayvdb
Copy link
Member Author

jayvdb commented Jul 17, 2019

Duplicate of #220

@jayvdb jayvdb closed this as completed Jul 17, 2019
@jayvdb jayvdb marked this as a duplicate of #220 Jul 17, 2019
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