]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Improve error messages from BlackRunner
authorZsolt Dollenstein <zsol.zsol@gmail.com>
Fri, 8 May 2020 15:12:52 +0000 (16:12 +0100)
committerZsolt Dollenstein <zsol.zsol@gmail.com>
Fri, 8 May 2020 15:15:31 +0000 (16:15 +0100)
tests/test_black.py

index 8fafabddda8cf4480958fb37c2af14360f52c59d..baa44ab32c9ce33de82a442e97a5d7f33dee27e6 100644 (file)
@@ -162,7 +162,12 @@ class BlackTestCase(unittest.TestCase):
         self.assertEqual(
             result.exit_code,
             exit_code,
         self.assertEqual(
             result.exit_code,
             exit_code,
-            msg=f"Failed with args: {args}. Stderr: {runner.stderr_bytes.decode()!r}",
+            msg=(
+                f"Failed with args: {args}\n"
+                f"stdout: {runner.stdout_bytes.decode()!r}\n"
+                f"stderr: {runner.stderr_bytes.decode()!r}\n"
+                f"exception: {result.exception}"
+            ),
         )
 
     @patch("black.dump_to_file", dump_to_stderr)
         )
 
     @patch("black.dump_to_file", dump_to_stderr)