##// END OF EJS Templates
Delete irrelevant tests.
Itamar Turner-Trauring -
Show More
@@ -150,17 +150,6 b' class SubProcessTestCase(tt.TempFileMixin):'
150 status, 0, "The process wasn't interrupted. Status: %s" % (status,)
150 status, 0, "The process wasn't interrupted. Status: %s" % (status,)
151 )
151 )
152
152
153 def test_stderr_while_stdout_open(self):
154 """
155 If lots of data is written to stderr while stdout is still open, enough
156 data to fill the pipe buffer in fact, the process still exits (i.e.
157 there is no deadlock).
158 """
159 with capture_output(display=False):
160 status = system(("%s -c \"import sys\nfor i in range(20000): " +
161 "sys.stderr.write('b' * 100)\"") % (python,))
162 self.assertEqual(status, 0)
163
164 def test_getoutput(self):
153 def test_getoutput(self):
165 out = getoutput('%s "%s"' % (python, self.fname))
154 out = getoutput('%s "%s"' % (python, self.fname))
166 # we can't rely on the order the line buffered streams are flushed
155 # we can't rely on the order the line buffered streams are flushed
@@ -169,17 +158,6 b' class SubProcessTestCase(tt.TempFileMixin):'
169 except AssertionError:
158 except AssertionError:
170 self.assertEqual(out, 'on stdouton stderr')
159 self.assertEqual(out, 'on stdouton stderr')
171
160
172 def test_getoutput_interrupt(self):
173 """
174 When interrupted in the way ipykernel interrupts IPython, the
175 subprocess is interrupted.
176 """
177 raise SkipTest("This fails on POSIX too, revisit in future.")
178 def command():
179 return getoutput('%s -c "import time; time.sleep(5)"' % (python, ))
180
181 self.assert_interrupts(command)
182
183 def test_getoutput_quoted(self):
161 def test_getoutput_quoted(self):
184 out = getoutput('%s -c "print (1)"' % python)
162 out = getoutput('%s -c "print (1)"' % python)
185 self.assertEqual(out.strip(), '1')
163 self.assertEqual(out.strip(), '1')
General Comments 0
You need to be logged in to leave comments. Login now