changeset 36151:a42817fede27

py3: use b'' in inline extension # skip-blame b prefix Differential Revision: https://phab.mercurial-scm.org/D2160
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 11 Feb 2018 16:30:44 -0800
parents 6426878f7f0f
children 83246d6920f2
files tests/test-largefiles-small-disk.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-largefiles-small-disk.t	Sun Feb 11 16:29:35 2018 -0800
+++ b/tests/test-largefiles-small-disk.t	Sun Feb 11 16:30:44 2018 -0800
@@ -11,7 +11,7 @@
   > _origcopyfileobj = shutil.copyfileobj
   > def copyfileobj(fsrc, fdst, length=16*1024):
   >     # allow journal files (used by transaction) to be written
-  >     if 'journal.' in fdst.name:
+  >     if b'journal.' in fdst.name:
   >         return _origcopyfileobj(fsrc, fdst, length)
   >     fdst.write(fsrc.read(4))
   >     raise IOError(errno.ENOSPC, os.strerror(errno.ENOSPC))