From 66a6be642c73a6a7fcf6229ec1fa0f1c7c7611b1 Mon Sep 17 00:00:00 2001 From: Zsolt Dollenstein Date: Sun, 26 Aug 2018 21:27:33 +0100 Subject: [PATCH] fix lint errors --- tests/test_black.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_black.py b/tests/test_black.py index 421e871..85ab2b6 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -99,8 +99,8 @@ class BlackRunner(CliRunner): sys.stderr = TextIOWrapper(self.stderrbuf, encoding=self.charset) yield output finally: - self.stdout_bytes = sys.stdout.buffer.getvalue() - self.stderr_bytes = sys.stderr.buffer.getvalue() + self.stdout_bytes = sys.stdout.buffer.getvalue() # type: ignore + self.stderr_bytes = sys.stderr.buffer.getvalue() # type: ignore sys.stderr = hold_stderr @@ -1226,6 +1226,7 @@ class BlackTestCase(unittest.TestCase): result = runner.invoke( black.main, ["-", "--fast"], input=BytesIO(contents.encode("utf8")) ) + self.assertEqual(result.exit_code, 0) output = runner.stdout_bytes self.assertIn(nl.encode("utf8"), output) if nl == "\n": -- 2.39.5