# HG changeset patch # User Siddharth Agarwal # Date 2016-03-10 18:12:23 # Node ID 12fdf49fa4dddb361609520f541b1b420dc8d36a # Parent 49d65663d7e44599fc350b3767eb5bd209ed1eb9 hook: filter out unstable output in tests This output is different between Python 2.6 and Python 2.7. It's also pretty irrelevant, so just filter it out. diff --git a/tests/test-hook.t b/tests/test-hook.t --- a/tests/test-hook.t +++ b/tests/test-hook.t @@ -530,13 +530,13 @@ test python hooks (run with --traceback for stack trace) [255] - $ hg pull ../a --traceback 2>&1 | egrep -v '^( +File| [_a-zA-Z*(])' +The second egrep is to filter out lines like ' ^', which are slightly +different between Python 2.6 and Python 2.7. + $ hg pull ../a --traceback 2>&1 | egrep -v '^( +File| [_a-zA-Z*(])' | egrep -v '^( )+(\^)?$' pulling from ../a searching for changes exception from first failed import attempt: Traceback (most recent call last): - - ^ SyntaxError: invalid syntax exception from second failed import attempt: Traceback (most recent call last):