Patchwork [6,of,7] py3: byte-stringify literals in extension in test-bundle2-format.t

login
register
mail settings
Submitter Yuya Nishihara
Date July 9, 2018, 1:24 p.m.
Message ID <9a7d1a087b1807a06b2e.1531142676@mimosa>
Download mbox | patch
Permalink /patch/32704/
State Accepted
Headers show

Comments

Yuya Nishihara - July 9, 2018, 1:24 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1531046051 -32400
#      Sun Jul 08 19:34:11 2018 +0900
# Node ID 9a7d1a087b1807a06b2e051725c69e0e0275c001
# Parent  a695979732a9b26b78e465096bc3434aef6e40f6
py3: byte-stringify literals in extension in test-bundle2-format.t

# skip-blame just some b''

Patch

diff --git a/tests/test-bundle2-format.t b/tests/test-bundle2-format.t
--- a/tests/test-bundle2-format.t
+++ b/tests/test-bundle2-format.t
@@ -184,9 +184,9 @@  Create an extension to test bundle2 API
   >             op = bundle2.processbundle(repo, unbundler, lambda: tr)
   >             tr.close()
   >         except error.BundleValueError as exc:
-  >             raise error.Abort('missing support for %s' % exc)
+  >             raise error.Abort(b'missing support for %s' % exc)
   >         except error.PushRaced as exc:
-  >             raise error.Abort('push race: %s' % exc)
+  >             raise error.Abort(b'push race: %s' % exc)
   >     finally:
   >         if tr is not None:
   >             tr.release()