changeset 39030:94cff858b4e5

tests: move assertion closer to want/got declarations in test-parseindex2.py I find this easier to understand. Differential Revision: https://phab.mercurial-scm.org/D4179
author Augie Fackler <augie@google.com>
date Thu, 09 Aug 2018 13:06:50 -0400
parents 22216c4607bb
children ee0720e82257
files tests/test-parseindex2.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-parseindex2.py	Thu Aug 09 13:05:40 2018 -0400
+++ b/tests/test-parseindex2.py	Thu Aug 09 13:06:50 2018 -0400
@@ -186,11 +186,10 @@
 
         py_res_1 = py_parseindex(data_inlined, True)
         c_res_1 = parse_index2(data_inlined, True)
+        self.assertEqual(py_res_1, c_res_1) # inline data
 
         py_res_2 = py_parseindex(data_non_inlined, False)
         c_res_2 = parse_index2(data_non_inlined, False)
-
-        self.assertEqual(py_res_1, c_res_1) # inline data
         self.assertEqual(py_res_2, c_res_2) # no inline data
 
         ix = parsers.parse_index2(data_inlined, True)[0]