summaryrefslogtreecommitdiff
path: root/testutils.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2013-12-19 19:19:01 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2013-12-19 19:19:01 +0100
commit98d324abffb2809ef1bdadeb375d48856486fb9a (patch)
tree9b7ffc3a6c57dd2ef05e2a3d67042ca73da70f60 /testutils.py
parent0dae865f1c85785219201d7fcc16988d08d1159e (diff)
downloadpylint-git-98d324abffb2809ef1bdadeb375d48856486fb9a.tar.gz
testutils: open messge file using Universal new lines mode to avoid failure due to do Windows/Unix CRLF pbs
Diffstat (limited to 'testutils.py')
-rw-r--r--testutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testutils.py b/testutils.py
index e939e5131..8a0eacab9 100644
--- a/testutils.py
+++ b/testutils.py
@@ -253,7 +253,7 @@ class LintTestUsingModule(testlib.TestCase):
if self.module.startswith('func_noerror_'):
expected = ''
else:
- output = open(self.output)
+ output = open(self.output, 'U')
expected = output.read().strip() + '\n'
output.close()
return expected