Mercurial > hg
comparison tests/test-chg.t @ 33949:0d0cec9602c3
tests: update test-chg to pass our import checker
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 22 Aug 2017 15:49:20 -0400 |
parents | fce4ed2912bb |
children | b94db1780365 |
comparison
equal
deleted
inserted
replaced
33948:4f86c9647d23 | 33949:0d0cec9602c3 |
---|---|
113 > ui.write('going to crash\n') | 113 > ui.write('going to crash\n') |
114 > raise Exception('.') | 114 > raise Exception('.') |
115 > EOF | 115 > EOF |
116 | 116 |
117 $ cat > $TESTTMP/fakepager.py <<EOF | 117 $ cat > $TESTTMP/fakepager.py <<EOF |
118 > import sys, time | 118 > from __future__ import absolute_import |
119 > import sys | |
120 > import time | |
119 > for line in iter(sys.stdin.readline, ''): | 121 > for line in iter(sys.stdin.readline, ''): |
120 > if 'crash' in line: # only interested in lines containing 'crash' | 122 > if 'crash' in line: # only interested in lines containing 'crash' |
121 > # if chg exits when pager is sleeping (incorrectly), the output | 123 > # if chg exits when pager is sleeping (incorrectly), the output |
122 > # will be captured by the next test case | 124 > # will be captured by the next test case |
123 > time.sleep(1) | 125 > time.sleep(1) |