From de7d8373f29f80e7ac27825308455ba49ee1fffb 2014-11-04 00:10:29 From: Thomas Kluyver Date: 2014-11-04 00:10:29 Subject: [PATCH] Skip some failing tests on Windows It's not obvious how to fix these, and it's not in code that ought to be platform dependent, so let's skip these tests so we can see real failures. --- diff --git a/IPython/core/tests/test_shellapp.py b/IPython/core/tests/test_shellapp.py index 61502da..197e828 100644 --- a/IPython/core/tests/test_shellapp.py +++ b/IPython/core/tests/test_shellapp.py @@ -44,6 +44,9 @@ class TestFileToRun(unittest.TestCase, tt.TempFileMixin): err = SQLITE_NOT_AVAILABLE_ERROR if sqlite_err_maybe else None tt.ipexec_validate(self.fname, self.fname, err) + # The commands option to ipexec_validate doesn't work on Windows, and it + # doesn't seem worth fixing + @dec.skip_win32 def test_py_script_file_attribute_interactively(self): """Test that `__file__` is not set after `ipython -i file.py`""" src = "True\n" @@ -53,6 +56,7 @@ class TestFileToRun(unittest.TestCase, tt.TempFileMixin): tt.ipexec_validate(self.fname, 'False', err, options=['-i'], commands=['"__file__" in globals()', 'exit()']) + @dec.skip_win32 @dec.skipif(PY3) def test_py_script_file_compiler_directive(self): """Test `__future__` compiler directives with `ipython -i file.py`"""