tests/test-parseindex2.py
changeset 20166 7eda5bb9ec8f
parent 20159 96b2dd77c85d
child 20742 3681de20b0a7
--- a/tests/test-parseindex2.py	Sun Dec 01 21:24:48 2013 -0600
+++ b/tests/test-parseindex2.py	Mon Dec 02 07:49:49 2013 -0800
@@ -1,11 +1,9 @@
+"""This unit test tests parsers.parse_index2()."""
+
 from mercurial import parsers
 from mercurial.node import nullid, nullrev
 import struct
 
-# This unit test compares the return value of the original Python
-# implementation of parseindex and the new C implementation for
-# an index file with and without inlined data
-
 # original python implementation
 def gettype(q):
     return int(q & 0xFFFF)
@@ -106,6 +104,9 @@
     else:
         print "Expected to get TypeError."
 
+   # Check parsers.parse_index2() on an index file against the original
+   # Python implementation of parseindex, both with and without inlined data.
+
     py_res_1 = py_parseindex(data_inlined, True)
     c_res_1 = parse_index2(data_inlined, True)