'Test that we don\'t deadlock with both stderr and stdout'

def test_it_doesnt_deadlock(self):

    code = u'import    sys;s    =    "\\0"    *    (1024    *    16    +    1);sys.stderr.write(s);sys.stdout.write(s);'
    (status, out, err) = git.Git.execute([u'python', u'-c', code], _raw=True)
    self.assertEqual(status, 0)
    self.assertEqual(out, (u'\x00' * ((1024 * 16) + 1)))
    self.assertEqual(err, (u'\x00' * ((1024 * 16) + 1)))
