D4970: py3: use bytes literal in test-hgweb-json.t

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Fri Oct 12 08:09:42 UTC 2018


indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  1. skip-blame just b'' prefix

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/test-hgweb-json.t

CHANGE DETAILS

diff --git a/tests/test-hgweb-json.t b/tests/test-hgweb-json.t
--- a/tests/test-hgweb-json.t
+++ b/tests/test-hgweb-json.t
@@ -2201,7 +2201,7 @@
 Commit message with null character
 
   $ echo foo >> da/foo
-  >>> open('msg', 'wb').write('commit with null character: \0\n') and None
+  >>> open('msg', 'wb').write(b'commit with null character: \0\n') and None
   $ hg ci -l msg
   $ rm msg
 



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


More information about the Mercurial-devel mailing list