tests/test.py
changeset 229 ce072f38628c
parent 214 e1a6deaa6ebe
child 232 2b8512340180
     1.1 --- a/tests/test.py	Sat Dec 22 16:25:16 2012 -0800
     1.2 +++ b/tests/test.py	Sat Dec 22 16:42:20 2012 -0800
     1.3 @@ -23,7 +23,8 @@
     1.4    def compare(self, text):
     1.5      ok = True
     1.6      message = None
     1.7 -    with open(os.path.join(self.path, self.name + '.' + self.type)) as f:
     1.8 +    with open(os.path.join(self.path, self.name + '.' + self.type), 'rt') as f:
     1.9 +      text = str.replace(text, '\r', '')
    1.10        lines = text.split('\n')
    1.11        i = 0
    1.12        for line in f: