• Tim Peters's avatar
    The "more" cmd varies across Windows flavors, sometimes adding stray · 3620857d
    Tim Peters yazdı
    newlines at the start or end.  Fiddle test_popen2 and popen2._test() to
    tolerate this.  Also change all "assert"s in these tests to raise
    explicit exceptions, so that python -O doesn't render them useless.
    Also, in case of error, make the msg display the reprs of what we
    wrote and what we read, so we can tell exactly why it's failing.
    3620857d
popen2.py 6.18 KB