mirror of
https://github.com/kanaka/mal.git
synced 2024-10-26 14:22:25 +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:
|
||||
def __init__(self, test_file):
|
||||
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.soft = False
|
||||
self.deferrable = False
|
||||
|
Loading…
Reference in New Issue
Block a user