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

login
register
mail settings
Submitter phabricator
Date Aug. 9, 2018, 5:45 p.m.
Message ID <1da4e7f23dcec9e3f8d5e528f924b147@localhost.localdomain>
Download mbox | patch
Permalink /patch/33472/
State Not Applicable
Headers show

Comments

phabricator - Aug. 9, 2018, 5:45 p.m.
durin42 updated this revision to Diff 10122.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4179?vs=10111&id=10122

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

AFFECTED FILES
  tests/test-parseindex2.py

CHANGE DETAILS




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

Patch

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