(self)
| 157 | ) |
| 158 | |
| 159 | def test_getoutput(self): |
| 160 | out = getoutput('%s "%s"' % (python, self.fname)) |
| 161 | # we can't rely on the order the line buffered streams are flushed |
| 162 | try: |
| 163 | self.assertEqual(out, 'on stderron stdout') |
| 164 | except AssertionError: |
| 165 | self.assertEqual(out, 'on stdouton stderr') |
| 166 | |
| 167 | def test_getoutput_quoted(self): |
| 168 | out = getoutput('%s -c "print (1)"' % python) |
nothing calls this directly
no test coverage detected