Nick Alexander wrote: > > On 30-Aug-08, at 8:09 AM, mabshoff wrote: > >> >> >> On Aug 30, 2:36 am, Jaap Spies <[EMAIL PROTECTED]> wrote: >>> mabshoff wrote: >> <SNIP> >> >> Hi Jaap, >> >>> Where have I seen this before? >> the same issue hit your box before and we ended up filtering some non- >> ascii characters out of the stream. I will dig for the ticket and see >> what is turning up. > > This has to do with IPython. This is the relevant part of ~/.sage/ > ipython/ipythonrc: > > # colors - Coloring option for prompts and traceback printouts. > > # Currently available schemes: NoColor, Linux, LightBG. > > # This option allows coloring the prompts and traceback printouts. This > # requires a terminal which can properly handle color escape > sequences. If you > # are having problems with this, use the NoColor scheme (uses no color > escapes > # at all). > > # The Linux option works well in linux console type environments: dark > # background with light fonts. > > # LightBG is similar to Linux but swaps dark/light colors to be more > readable > # in light background terminals. > > # keep uncommented only the one you want: > #colors Linux > #colors LightBG > colors NoColor >
With this settings I get: sage -t devel/sage/sage/interfaces/sage0.py ********************************************************************** File "/home/jaap/downloads/sage-3.1.2.alpha2/tmp/sage0.py", line 276: sage: sage0.eval('2+2') Expected: '4' Got: ' 4\n' ********************************************************************** File "/home/jaap/downloads/sage-3.1.2.alpha2/tmp/sage0.py", line 289: sage: sage0.get('x') Expected: '2' Got: '2\n' ********************************************************************** File "/home/jaap/downloads/sage-3.1.2.alpha2/tmp/sage0.py", line 303: sage: sage0.get('x') Expected: '2' Got: '2\n' ********************************************************************** File "/home/jaap/downloads/sage-3.1.2.alpha2/tmp/sage0.py", line 314: sage: sage0.get('x') Expected: '2' Got: '2\n' ********************************************************************** File "/home/jaap/downloads/sage-3.1.2.alpha2/tmp/sage0.py", line 317: sage: sage0.get('x') Expected: "...NameError: name 'x' is not defined" Got: "---------------------------------------------------------------------------\nNameError Traceback (most recent call last)\n\n/home/jaap/work/downloads/sage-3.1.2.alpha2/data/extcode/sage/<ipython console> in <module>()\n\nNameError: name 'x' is not defined\n" ********************************************************************** File "/home/jaap/downloads/sage-3.1.2.alpha2/tmp/sage0.py", line 326: sage: sage0._contains('2', 'QQ') Expected: 'True' Got: ' True\n' ********************************************************************** File "/home/jaap/downloads/sage-3.1.2.alpha2/tmp/sage0.py", line 360: sage: sage0.version() == version() Expected: True Got: False ********************************************************************** File "/home/jaap/downloads/sage-3.1.2.alpha2/tmp/sage0.py", line 497: sage: sage0_version() == version() Expected: True Got: False ********************************************************************** File "/home/jaap/downloads/sage-3.1.2.alpha2/tmp/sage0.py", line 177: sage: s.eval('2+2') Expected: '4' Got: ' 4\n' ********************************************************************** 8 items had failures: 1 of 3 in __main__.example_10 1 of 4 in __main__.example_11 1 of 4 in __main__.example_12 2 of 6 in __main__.example_13 1 of 3 in __main__.example_14 1 of 4 in __main__.example_17 1 of 4 in __main__.example_27 1 of 5 in __main__.example_5 ***Test Failed*** 9 failures. For whitespace errors, see the file /home/jaap/downloads/sage-3.1.2.alpha2/tmp/.doctest_sage0.py [14.1 s] exit code: 1024 ---------------------------------------------------------------------- The following tests failed: sage -t devel/sage/sage/interfaces/sage0.py Total time for all tests: 14.1 seconds [EMAIL PROTECTED] sage-3.1.2.alpha2]$ The color issues are gone indeed. Remains a newline issue, or? Jaap --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---