Patchwork D1127: test-obsolete-bounds-checking: make the test compatible with chg

login
register
mail settings
Submitter phabricator
Date Oct. 17, 2017, 12:07 a.m.
Message ID <differential-rev-PHID-DREV-ay2ailcwh4xc4ku7ymal-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/25038/
State Superseded
Headers show

Comments

phabricator - Oct. 17, 2017, 12:07 a.m.
singhsrb created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This test fails when run with chg because the error message starts
  with "ProgrammingError" instead of "mercurial.error.ProgrammingError".
  Therefore, globing the "mercurial.error." to ensure that the test is compatible
  with chg.

TEST PLAN
  Ran the test 'test-obsolete-bounds-checking.t' with and without the
  '--chg' option.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1127

AFFECTED FILES
  tests/test-obsolete-bounds-checking.t

CHANGE DETAILS




To: singhsrb, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-obsolete-bounds-checking.t b/tests/test-obsolete-bounds-checking.t
--- a/tests/test-obsolete-bounds-checking.t
+++ b/tests/test-obsolete-bounds-checking.t
@@ -20,4 +20,4 @@ 
   transaction abort!
   rollback completed
   Traceback (most recent call last):
-  mercurial.error.ProgrammingError: obsstore metadata value cannot be longer than 255 bytes (value "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa <very.long.name@example.com>" for key "user" is 285 bytes)
+  *ProgrammingError: obsstore metadata value cannot be longer than 255 bytes (value "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa <very.long.name@example.com>" for key "user" is 285 bytes) (glob)