From 3968d6e6ed6c34364c89d2763e17223f31a7b6ac 2010-01-13 01:46:36 From: Fernando Perez Date: 2010-01-13 01:46:36 Subject: [PATCH] Fix another win32 test failure. As of this commit, the entire test suite passes on a system that only has: - Python 2.6.4 from Python.org - Pyreadline 1.5 - IPython (this branch) - nose 0.11.1 Tests that require Twisted, graphics or other machinery get skipped, but everything else runs and passes. The glaring remaining problem on win32 is that right now, colored output is broken for some reason (though prompts are OK). I'll try to fix that next. --- diff --git a/IPython/extensions/tests/test_pretty.py b/IPython/extensions/tests/test_pretty.py old mode 100755 new mode 100644 index 4df8f9f..b7738cf --- a/IPython/extensions/tests/test_pretty.py +++ b/IPython/extensions/tests/test_pretty.py @@ -21,6 +21,7 @@ from IPython.core.component import Component, masquerade_as from IPython.core.iplib import InteractiveShell from IPython.extensions import pretty as pretty_ext from IPython.external import pretty +from IPython.testing import decorators as dec from IPython.testing import tools as tt from IPython.utils.traitlets import Bool @@ -28,7 +29,6 @@ from IPython.utils.traitlets import Bool # Tests #----------------------------------------------------------------------------- - class InteractiveShellStub(Component): pprint = Bool(True) @@ -92,6 +92,10 @@ B() """ class TestPrettyInteractively(tt.TempFileMixin): + + # XXX Unfortunately, ipexec_validate fails under win32. If someone helps + # us write a win32-compatible version, we can reactivate this test. + @dec.skip_win32 def test_printers(self): self.mktmp(ipy_src, '.ipy') tt.ipexec_validate(self.fname, ipy_out)