diff tests/test-bundle2-format.t @ 38609:d474b3b44d4f

bundle2: use ProgrammingError to report bad use of addparam() This allows us to embed error message in bytes.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 08 Jul 2018 19:24:18 +0900
parents 980aee54fd70
children 0617a700ef7b
line wrap: on
line diff
--- a/tests/test-bundle2-format.t	Sun Jul 08 19:34:11 2018 +0900
+++ b/tests/test-bundle2-format.t	Sun Jul 08 19:24:18 2018 +0900
@@ -91,8 +91,8 @@
   >         p = p.split(b'=', 1)
   >         try:
   >             bundler.addparam(*p)
-  >         except ValueError as exc:
-  >             raise error.Abort('%s' % exc)
+  >         except error.ProgrammingError as exc:
+  >             raise error.Abort(b'%s' % exc)
   > 
   >     if opts['compress']:
   >         bundler.setcompression(opts['compress'])