Permalink
Browse files

added the skip_known decorator

  • Loading branch information...
1 parent 212f351 commit 94644f8967db36c0afc33239d1fc4b3b96745a4f @ivanov ivanov committed Mar 26, 2011
Showing with 7 additions and 3 deletions.
  1. +4 −1 IPython/core/tests/test_interactiveshell.py
  2. +3 −2 IPython/core/tests/test_run.py
View
5 IPython/core/tests/test_interactiveshell.py
@@ -20,6 +20,7 @@
#-----------------------------------------------------------------------------
# stdlib
import unittest
+from IPython.testing import decorators as dec
#-----------------------------------------------------------------------------
# Tests
@@ -55,6 +56,7 @@ def test_run_cell_multiline(self):
self.assertEquals(ip.user_ns['x'], 2)
self.assertEquals(ip.user_ns['y'], 3)
+ @dec.skip_known_failure
def test_multiline_string_cells(self):
"Code sprinkled with multiline strings should execute (GH-306)"
ip = get_ipython()
@@ -63,6 +65,7 @@ def test_multiline_string_cells(self):
ip.run_cell('tmp=1;"""a\nb"""\n')
self.assertEquals(ip.user_ns['tmp'], 1)
+ @dec.skip_known_failure
def test_dont_cache_with_semicolon(self):
"Ending a line with semicolon should not cache the returned object (GH-307)"
ip = get_ipython()
@@ -74,7 +77,7 @@ def test_dont_cache_with_semicolon(self):
ip.run_cell('1')
newlen = len(ip.user_ns['Out'])
self.assertEquals(oldlen+1, newlen)
-
+
def test_In_variable(self):
"Verify that In variable grows with user input (GH-284)"
ip = get_ipython()
View
5 IPython/core/tests/test_run.py
@@ -171,10 +171,11 @@ def test_obj_del(self):
self.mktmp(src)
tt.ipexec_validate(self.fname, 'object A deleted')
+ @dec.skip_known_failure
def test_aggressive_namespace_cleanup(self):
"""Test that namespace cleanup is not too aggressive GH-238
-
- returning from another run magic deletes the namespace"""
+
+ Returning from another run magic deletes the namespace"""
# see ticket https://github.com/ipython/ipython/issues/238
class secondtmp(tt.TempFileMixin): pass
empty = secondtmp()

0 comments on commit 94644f8

Please sign in to comment.