# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1595532057 -19800 # Node ID 41021660baa1bdb3fb089d6ddb6b6658c9e540b1 # Parent bfc6e75c01148a6d7d93762804d4f891f3dff161 tests: glob 'mercurial.error' in test-phases.t On python 2 with chg, `mercurial.error` is omitted while printing error. On other cases it's there in error message. I did tried to understand what might be the cause was unable to find one on quick skim through the code. diff -r bfc6e75c0114 -r 41021660baa1 tests/test-phases.t --- a/tests/test-phases.t Thu Jul 23 17:32:09 2020 +0200 +++ b/tests/test-phases.t Fri Jul 24 00:50:57 2020 +0530 @@ -896,13 +896,11 @@ $ hg --config "phases.new-commit=internal" commit -m "my test internal commit" 2>&1 | grep ProgrammingError ** ProgrammingError: this repository does not support the internal phase raise error.ProgrammingError(msg) - mercurial.error.ProgrammingError: this repository does not support the internal phase (no-chg !) - ProgrammingError: this repository does not support the internal phase (chg !) + *ProgrammingError: this repository does not support the internal phase (glob) $ hg --config "phases.new-commit=archived" commit -m "my test archived commit" 2>&1 | grep ProgrammingError ** ProgrammingError: this repository does not support the archived phase raise error.ProgrammingError(msg) - mercurial.error.ProgrammingError: this repository does not support the archived phase (no-chg !) - ProgrammingError: this repository does not support the archived phase (chg !) + *ProgrammingError: this repository does not support the archived phase (glob) $ cd ..