Show More
@@ -20,6 +20,7 b' Authors' | |||||
20 | #----------------------------------------------------------------------------- |
|
20 | #----------------------------------------------------------------------------- | |
21 | # stdlib |
|
21 | # stdlib | |
22 | import unittest |
|
22 | import unittest | |
|
23 | from IPython.testing import decorators as dec | |||
23 |
|
24 | |||
24 | #----------------------------------------------------------------------------- |
|
25 | #----------------------------------------------------------------------------- | |
25 | # Tests |
|
26 | # Tests | |
@@ -55,6 +56,7 b' class InteractiveShellTestCase(unittest.TestCase):' | |||||
55 | self.assertEquals(ip.user_ns['x'], 2) |
|
56 | self.assertEquals(ip.user_ns['x'], 2) | |
56 | self.assertEquals(ip.user_ns['y'], 3) |
|
57 | self.assertEquals(ip.user_ns['y'], 3) | |
57 |
|
58 | |||
|
59 | @dec.skip_known_failure | |||
58 | def test_multiline_string_cells(self): |
|
60 | def test_multiline_string_cells(self): | |
59 | "Code sprinkled with multiline strings should execute (GH-306)" |
|
61 | "Code sprinkled with multiline strings should execute (GH-306)" | |
60 | ip = get_ipython() |
|
62 | ip = get_ipython() | |
@@ -63,6 +65,7 b' class InteractiveShellTestCase(unittest.TestCase):' | |||||
63 | ip.run_cell('tmp=1;"""a\nb"""\n') |
|
65 | ip.run_cell('tmp=1;"""a\nb"""\n') | |
64 | self.assertEquals(ip.user_ns['tmp'], 1) |
|
66 | self.assertEquals(ip.user_ns['tmp'], 1) | |
65 |
|
67 | |||
|
68 | @dec.skip_known_failure | |||
66 | def test_dont_cache_with_semicolon(self): |
|
69 | def test_dont_cache_with_semicolon(self): | |
67 | "Ending a line with semicolon should not cache the returned object (GH-307)" |
|
70 | "Ending a line with semicolon should not cache the returned object (GH-307)" | |
68 | ip = get_ipython() |
|
71 | ip = get_ipython() | |
@@ -74,7 +77,7 b' class InteractiveShellTestCase(unittest.TestCase):' | |||||
74 | ip.run_cell('1') |
|
77 | ip.run_cell('1') | |
75 | newlen = len(ip.user_ns['Out']) |
|
78 | newlen = len(ip.user_ns['Out']) | |
76 | self.assertEquals(oldlen+1, newlen) |
|
79 | self.assertEquals(oldlen+1, newlen) | |
77 |
|
80 | |||
78 | def test_In_variable(self): |
|
81 | def test_In_variable(self): | |
79 | "Verify that In variable grows with user input (GH-284)" |
|
82 | "Verify that In variable grows with user input (GH-284)" | |
80 | ip = get_ipython() |
|
83 | ip = get_ipython() |
@@ -171,10 +171,11 b' class TestMagicRunSimple(tt.TempFileMixin):' | |||||
171 | self.mktmp(src) |
|
171 | self.mktmp(src) | |
172 | tt.ipexec_validate(self.fname, 'object A deleted') |
|
172 | tt.ipexec_validate(self.fname, 'object A deleted') | |
173 |
|
173 | |||
|
174 | @dec.skip_known_failure | |||
174 | def test_aggressive_namespace_cleanup(self): |
|
175 | def test_aggressive_namespace_cleanup(self): | |
175 | """Test that namespace cleanup is not too aggressive GH-238 |
|
176 | """Test that namespace cleanup is not too aggressive GH-238 | |
176 |
|
177 | |||
177 |
|
|
178 | Returning from another run magic deletes the namespace""" | |
178 | # see ticket https://github.com/ipython/ipython/issues/238 |
|
179 | # see ticket https://github.com/ipython/ipython/issues/238 | |
179 | class secondtmp(tt.TempFileMixin): pass |
|
180 | class secondtmp(tt.TempFileMixin): pass | |
180 | empty = secondtmp() |
|
181 | empty = secondtmp() |
General Comments 0
You need to be logged in to leave comments.
Login now