From: Zsolt Dollenstein Date: Sun, 26 Aug 2018 20:27:33 +0000 (+0100) Subject: fix lint errors X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/66a6be642c73a6a7fcf6229ec1fa0f1c7c7611b1?ds=inline fix lint errors --- 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":