zestsoftware / zest.releaser

Python software releasing made easy and repeatable
https://zestreleaser.readthedocs.io
GNU General Public License v2.0
198 stars 62 forks source link

Fixed tests with mercurial 4.4+. #252

Closed mauritsvanrees closed 6 years ago

mauritsvanrees commented 6 years ago

I updated with mac homebrew to mercurial 4.4.1 today (I don't know what the previous version exactly was). This gave a test error because it prints an extra line.

File "/Users/maurits/tools/src/zest.releaser/zest/releaser/tests/hg.txt", line 127, in hg.txt
Failed example:
    checkout.checkout_from_tag('0.1')
Differences (ndiff with -expected +actual):
    -
      adding changesets
      adding manifests
      adding file changes
    - added 2 changesets with ... changes to 17 files
    ?                         ^^^
    + added 2 changesets with 18 changes to 17 files
    ?                         ^^
    + new changesets 234567890abc:234567890abc
      updating to branch default
      17 files updated, 0 files merged, 0 files removed, 0 files unresolved
    + <BLANKLINE>

I fixed it by removing this line in our test output normalizer.

mauritsvanrees commented 6 years ago

Simple test fix, so I will merge it myself.