summaryrefslogtreecommitdiff
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
commit6aca5d70804da3af762eeb9eb89c9b27692fae26 (patch)
treee839420f9b9d8383b8c2d089b5c70b04085eccb3
parent5e41797d9e7f806390d235117153365e580c53a6 (diff)
downloadpylint-6aca5d70804da3af762eeb9eb89c9b27692fae26.tar.gz
testutils: open messge file using Universal new lines mode to avoid failure due to do Windows/Unix CRLF pbs
-rw-r--r--testutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testutils.py b/testutils.py
index e939e51..8a0eaca 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