##// END OF EJS Templates
Add test for exit status from system_piped
Thomas Kluyver -
Show More
@@ -33,7 +33,7 b' from StringIO import StringIO'
33 33 import nose.tools as nt
34 34
35 35 # Our own
36 from IPython.testing.decorators import skipif, onlyif_unicode_paths
36 from IPython.testing.decorators import skipif, skip_win32, onlyif_unicode_paths
37 37 from IPython.testing import tools as tt
38 38 from IPython.utils import io
39 39
@@ -439,6 +439,13 b' class TestSystemRaw(unittest.TestCase):'
439 439 ip.system_raw('exit 1')
440 440 self.assertEqual(ip.user_ns['_exit_code'], 1)
441 441
442 class TestSystemPiped(unittest.TestCase):
443 # TODO: Exit codes are currently ignored on Windows.
444 @skip_win32
445 def test_exit_code(self):
446 ip.system_piped('exit 1')
447 self.assertEqual(ip.user_ns['_exit_code'], 1)
448
442 449 class TestModules(unittest.TestCase, tt.TempFileMixin):
443 450 def test_extraneous_loads(self):
444 451 """Test we're not loading modules on startup that we shouldn't.
General Comments 0
You need to be logged in to leave comments. Login now