summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2022-11-24 15:07:36 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2022-11-24 15:07:36 +0000
commitf02a7dfe995076ad889f6e6a4eac8b0b2c3c74bf (patch)
tree1a002f3b27a5ff54efce6319ac8da227c9e35b96
parentbcb58887af00bc0f378f7b759660f00c3350637d (diff)
downloaddocutils-f02a7dfe995076ad889f6e6a4eac8b0b2c3c74bf.tar.gz
Put `first` and `second` arguments of `assertEqual` on the top line.
When a test fails, only the first line of the failing statement is printed. Writing the statements that should be equal just behind the function name, we can see which argument is the actual "output" and which is the "expected" value if the assertment fails. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9262 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rwxr-xr-xdocutils/test/test_functional.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/docutils/test/test_functional.py b/docutils/test/test_functional.py
index 6a90d7eb6..17a81bb50 100755
--- a/docutils/test/test_functional.py
+++ b/docutils/test/test_functional.py
@@ -106,12 +106,10 @@ class FunctionalTests(unittest.TestCase):
exp=expected_path, out=destination_path)
) from err
- self.assertEqual(
- output,
- expected,
- EXPECTED_OUTPUT_DIFFERS_TEMPLATE.format(
- exp=expected_path, out=destination_path)
- )
+ self.assertEqual(output, expected,
+ EXPECTED_OUTPUT_DIFFERS_TEMPLATE.format(
+ exp=expected_path, out=destination_path)
+ )
if __name__ == '__main__':