##// END OF EJS Templates
added the skip_known decorator
Paul Ivanov -
Show More
@@ -20,6 +20,7 b' Authors'
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 b' class InteractiveShellTestCase(unittest.TestCase):'
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 b' class InteractiveShellTestCase(unittest.TestCase):'
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 b' class InteractiveShellTestCase(unittest.TestCase):'
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()
@@ -171,10 +171,11 b' class TestMagicRunSimple(tt.TempFileMixin):'
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()
General Comments 0
You need to be logged in to leave comments. Login now