From 7943c9a7fdddc82f9a5e1f9d454bcbf03448e3ae Mon Sep 17 00:00:00 2001 From: Xavier Deguillard Date: Thu, 18 Jun 2020 18:48:34 -0700 Subject: [PATCH] tests: fix test-lfs.t in python3 Summary: The write method returns the number of bytes written, and python3 print these if not captured. Reviewed By: quark-zju Differential Revision: D22096665 fbshipit-source-id: 2b1abd994df4c705515a6dc3d01c720f056f0411 --- eden/scm/tests/test-lfs.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eden/scm/tests/test-lfs.t b/eden/scm/tests/test-lfs.t index afe4595384..e9f3439c30 100644 --- a/eden/scm/tests/test-lfs.t +++ b/eden/scm/tests/test-lfs.t @@ -247,9 +247,9 @@ $ hg commit -m b $ hg status >>> with open('a2', 'wb') as f: - ... f.write(b'\1\nSTART-WITH-HG-FILELOG-METADATA') + ... _ = f.write(b'\1\nSTART-WITH-HG-FILELOG-METADATA') >>> with open('a1', 'wb') as f: - ... f.write(b'\1\nMETA\n') + ... _ = f.write(b'\1\nMETA\n') $ hg commit -m meta $ hg status $ hg log -T '{rev}: {file_copies} | {file_dels} | {file_adds}\n'