X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/154b98579d3904a042fd3e02a9d77a76be63b36c..3dc461a41a13cc36303aff80d079786ef210ddae:/tests/test_black.py diff --git a/tests/test_black.py b/tests/test_black.py index a465d54..3b37011 100644 --- a/tests/test_black.py +++ b/tests/test_black.py @@ -99,7 +99,7 @@ def skip_if_exception(e: str) -> Iterator[None]: if exc.__class__.__name__ == e: unittest.skip(f"Encountered expected exception {exc}, skipping") else: - raise exc + raise class BlackRunner(CliRunner): @@ -1624,18 +1624,25 @@ class BlackDTestCase(AioHTTPTestCase): response = await self.client.post( "/", data=code, headers={blackd.PYTHON_VARIANT_HEADER: header_value} ) - self.assertEqual(response.status, expected_status) + self.assertEqual( + response.status, expected_status, msg=await response.text() + ) await check("3.6", 200) await check("py3.6", 200) await check("3.6,3.7", 200) await check("3.6,py3.7", 200) + await check("py36,py37", 200) + await check("36", 200) + await check("3.6.4", 200) await check("2", 204) await check("2.7", 204) await check("py2.7", 204) await check("3.4", 204) await check("py3.4", 204) + await check("py34,py36", 204) + await check("34", 204) @skip_if_exception("ClientOSError") @unittest.skipUnless(has_blackd_deps, "blackd's dependencies are not installed")