mirror of
https://github.com/kanaka/mal.git
synced 2024-09-11 13:55:55 +03:00
Respect platform dependent newline when reading test files
This commit is contained in:
parent
dc8a9b4307
commit
1b8c360f35
@ -240,7 +240,7 @@ class Runner():
|
|||||||
class TestReader:
|
class TestReader:
|
||||||
def __init__(self, test_file):
|
def __init__(self, test_file):
|
||||||
self.line_num = 0
|
self.line_num = 0
|
||||||
f = open(test_file, newline='') if IS_PY_3 else open(test_file)
|
f = open(test_file)
|
||||||
self.data = f.read().split('\n')
|
self.data = f.read().split('\n')
|
||||||
self.soft = False
|
self.soft = False
|
||||||
self.deferrable = False
|
self.deferrable = False
|
||||||
|
Loading…
Reference in New Issue
Block a user