@@ -60,7 +60,9 @@ def doctest_hist_r():
6060 hist -n -r 2 # random
6161 """
6262
63-
63+ # This is skipped for now because getoutput doesn't find the ipython
64+ # executable. See ticket https://bugs.launchpad.net/bugs/366334
65+ @dec .skip_win32
6466def test_obj_del ():
6567 """Test that object's __del__ methods are called on exit."""
6668 test_dir = os .path .dirname (__file__ )
@@ -159,6 +161,7 @@ def doctest_run_ns2():
159161 tclass.py: deleting object: C-first_pass
160162 """
161163
164+ @dec .skip_win32
162165def doctest_run_builtins ():
163166 """Check that %run doesn't damage __builtins__ via a doctest.
164167
@@ -206,6 +209,13 @@ def setup(self):
206209 def run_tmpfile (self ):
207210 _ip .magic ('run %s' % self .tmpfile .name )
208211
212+ # See https://bugs.launchpad.net/bugs/366353
213+ @dec .skip_if_not_win32
214+ def test_run_tempfile_path (self ):
215+ # self.run_tmpfile() # This is what triggers the error!
216+ tt .assert_equals (True ,False ,"%run doesn't work with tempfile paths on win32." )
217+
218+ @dec .skip_win32
209219 def test_builtins_id (self ):
210220 """Check that %run doesn't damage __builtins__ """
211221
@@ -215,6 +225,7 @@ def test_builtins_id(self):
215225 bid2 = id (_ip .user_ns ['__builtins__' ])
216226 tt .assert_equals (bid1 , bid2 )
217227
228+ @dec .skip_win32
218229 def test_builtins_type (self ):
219230 """Check that the type of __builtins__ doesn't change with %run.
220231
@@ -225,6 +236,7 @@ def test_builtins_type(self):
225236 self .run_tmpfile ()
226237 tt .assert_equals (type (_ip .user_ns ['__builtins__' ]),type (sys ))
227238
239+ @dec .skip_win32
228240 def test_prompts (self ):
229241 """Test that prompts correctly generate after %run"""
230242 self .run_tmpfile ()
0 commit comments