Pythoscope doesn't handle unicode objects well
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pythoscope |
Fix Released
|
High
|
Michal Kwiatkowski |
Bug Description
Minimal example is to have a module with a function that returns a unicode object:
# module.py
def fun():
return unicode('\xc3\xb3', 'utf-8')
After running a point of entry that called fun() Pythoscope will exit with the following error message:
...
INFO: Generating tests for module module.py.
ERROR: Oops, it seems internal Pythoscope error occured. Please file a bug report at https:/
Traceback (most recent call last):
File "/usr/bin/
load_
File "/home/
generate_
File "/home/
add_
File "/home/
generator.
File "/home/
self.
File "/home/
for test_case in self._generate_
File "/home/
test_case = self._generate_
File "/home/
method_
File "/home/
return sorted(
File "/home/
name = call2testname(call, function.name)
File "/home/
return objcall2testnam
File "/home/
call_
File "/home/
return string2id(
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 0: ordinal not in range(128)
Related branches
Changed in pythoscope: | |
assignee: | nobody → ruby |
importance: | Undecided → High |
milestone: | none → 0.3.2-more-dynamic-analysis-fixes |
status: | New → Confirmed |
Changed in pythoscope: | |
status: | Fix Committed → Fix Released |
Fixed in trunk r229.