D4179: tests: move assertion closer to want/got declarations in test-parseindex2.py

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Aug 9 17:42:06 UTC 2018


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  I find this easier to understand.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D4179

AFFECTED FILES
  tests/test-parseindex2.py

CHANGE DETAILS

diff --git a/tests/test-parseindex2.py b/tests/test-parseindex2.py
--- a/tests/test-parseindex2.py
+++ b/tests/test-parseindex2.py
@@ -185,11 +185,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]



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list