Skip to content
This repository
Browse code

added the skip_known decorator

  • Loading branch information...
commit 94644f8967db36c0afc33239d1fc4b3b96745a4f 1 parent 212f351
Paul Ivanov authored March 25, 2011
5  IPython/core/tests/test_interactiveshell.py
@@ -20,6 +20,7 @@
20 20
 #-----------------------------------------------------------------------------
21 21
 # stdlib
22 22
 import unittest
  23
+from IPython.testing import decorators as dec
23 24
 
24 25
 #-----------------------------------------------------------------------------
25 26
 # Tests
@@ -55,6 +56,7 @@ def test_run_cell_multiline(self):
55 56
         self.assertEquals(ip.user_ns['x'], 2)
56 57
         self.assertEquals(ip.user_ns['y'], 3)
57 58
 
  59
+    @dec.skip_known_failure
58 60
     def test_multiline_string_cells(self):
59 61
         "Code sprinkled with multiline strings should execute (GH-306)"
60 62
         ip = get_ipython()
@@ -63,6 +65,7 @@ def test_multiline_string_cells(self):
63 65
         ip.run_cell('tmp=1;"""a\nb"""\n')
64 66
         self.assertEquals(ip.user_ns['tmp'], 1)
65 67
 
  68
+    @dec.skip_known_failure
66 69
     def test_dont_cache_with_semicolon(self):
67 70
         "Ending a line with semicolon should not cache the returned object (GH-307)"
68 71
         ip = get_ipython()
@@ -74,7 +77,7 @@ def test_dont_cache_with_semicolon(self):
74 77
         ip.run_cell('1')
75 78
         newlen = len(ip.user_ns['Out'])
76 79
         self.assertEquals(oldlen+1, newlen)
77  
-    
  80
+
78 81
     def test_In_variable(self):
79 82
         "Verify that In variable grows with user input (GH-284)"
80 83
         ip = get_ipython()
5  IPython/core/tests/test_run.py
@@ -171,10 +171,11 @@ def test_obj_del(self):
171 171
         self.mktmp(src)
172 172
         tt.ipexec_validate(self.fname, 'object A deleted')
173 173
     
  174
+    @dec.skip_known_failure 
174 175
     def test_aggressive_namespace_cleanup(self):
175 176
         """Test that namespace cleanup is not too aggressive GH-238
176  
-        
177  
-        returning from another run magic deletes the namespace"""
  177
+
  178
+        Returning from another run magic deletes the namespace"""
178 179
         # see ticket https://github.com/ipython/ipython/issues/238
179 180
         class secondtmp(tt.TempFileMixin): pass
180 181
         empty = secondtmp()

0 notes on commit 94644f8

Please sign in to comment.
Something went wrong with that request. Please try again.