tests: add missing b prefix in test-context-metadata.t
authorAugie Fackler <augie@google.com>
Sun, 14 Oct 2018 11:06:21 -0400
changeset 40303 b8db53f786f0
parent 40302 af2306bf7d5d
child 40304 f6ef89cf8234
tests: add missing b prefix in test-context-metadata.t # skip-blame just a b prefix Differential Revision: https://phab.mercurial-scm.org/D5109
contrib/python3-whitelist
tests/test-context-metadata.t
--- a/contrib/python3-whitelist	Sun Oct 14 11:05:41 2018 -0400
+++ b/contrib/python3-whitelist	Sun Oct 14 11:06:21 2018 -0400
@@ -89,6 +89,7 @@
 test-config.t
 test-conflict.t
 test-confused-revert.t
+test-context-metadata.t
 test-context.py
 test-contrib-check-code.t
 test-contrib-check-commit.t
--- a/tests/test-context-metadata.t	Sun Oct 14 11:05:41 2018 -0400
+++ b/tests/test-context-metadata.t	Sun Oct 14 11:06:21 2018 -0400
@@ -22,7 +22,7 @@
   >     with repo.wlock(), repo.lock(), repo.transaction(b'metaedit'):
   >         old = repo[b'.']
   >         kwargs = dict(s.split(b'=', 1) for s in arg.split(b';'))
-  >         if 'parents' in kwargs:
+  >         if b'parents' in kwargs:
   >             kwargs[b'parents'] = map(int, kwargs[b'parents'].split(b','))
   >         new = context.metadataonlyctx(repo, old,
   >                                       **pycompat.strkwargs(kwargs))