Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
fix regression in doctest functional helper: sort headers #259
@tseaver I do not think so. It seems to solve the problem that the HTTP headers in Zope 4 are not sorted and in random order which even changes between test runs. This makes it difficult to write fix doctests which assert the raw HTTP response. See https://github.com/zopefoundation/Products.ExternalEditor/pull/10/files#diff-cd5c80de291398a1c9b1b8bb98e45e4dR40 what I had to do in Products.ExternalEditor which uses this approach heavily.
referenced this pull request
Apr 6, 2018
This PR help a lot to port doctests to Zope 4. (See zopefoundation/Products.ExternalEditor#10 where I could revert all my changes in the doctest regarding the response checks after using this branch.)