Skip to content

Commit

Permalink
Do not strip lines blindly in compare mode (cf #37)
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanboniface committed Mar 9, 2018
1 parent 1643c64 commit e423a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def pytest_configure(config):
with open(config.getoption('--compare-report')) as f:
CONFIG['COMPARE_WITH'] = []
for line in f:
CONFIG['COMPARE_WITH'].append(line.strip())
CONFIG['COMPARE_WITH'].append(line[:-1]) # Remove \n.


def pytest_unconfigure(config):
Expand Down

0 comments on commit e423a9d

Please sign in to comment.