While updating some tests to work with the new release, I noticed that tests assuming that the offset index of a file were ordered started failing on Python 3.5 while still passing on 2.7 and 3.6.
from pyteomics import mzml reader = mzml.MzML("three_test_scans.mzML", use_index=True) index = reader.index['spectrum'] print(index)
OffsetIndex([('controllerType=0 controllerNumber=1 scan=10014', 3799), ('controllerType=0 controllerNumber=1 scan=10016', 188056), ('controllerType=0 controllerNumber=1 scan=10015', 158797)])
with lines manually wrapped for convenience.
The order may be permuted randomly. When tested with a larger file, there are no issues.