From e423a9d5156ff97c923370584525f08f9180fea7 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 9 Mar 2018 16:26:47 +0100 Subject: [PATCH] Do not strip lines blindly in compare mode (cf #37) --- conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conftest.py b/conftest.py index e30bac7..44a55bd 100644 --- a/conftest.py +++ b/conftest.py @@ -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):