"sqrtpi" test in calculator scope disabled

Bug #1157100 reported by James Henstridge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Scopes
New
Undecided
Unassigned

Bug Description

I have disabled the "sqrtpi" test in the calculator scope's test suite:

https://code.launchpad.net/~jamesh/ubuntu-scopes/calculator-test-fixes/+merge/153987

Jenkins runs the tests in the C locale, which is treated as an ASCII locale.

The calculator scope implements its searches by shelling out to gnome-calculator, passing an expression on the command line. A search for "sqrtpi" gets converted to "
√π" which gets passed correctly in a UTF-8 locale, but gets passed as "\u221a\u03c0" in an ASCII locale.

Possible fixes:
 1. try to run the tests in a real locale
 2. adjust the fake version of gnome-calculator used by the test suite to support the escape code version (not ideal, since gnome-calculator probably doesn't support Python's escaped characters).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.