Skip to content

Commit 6618a53

Browse files
committed
fix remaining windows tests
1 parent 7b2e112 commit 6618a53

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_parser_completers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ def test_model_object_parser_metavar(self):
224224
stdout, stderr, retcode = run_command(
225225
"model_fields", "--no-color", "test", "--help"
226226
)
227+
if platform.system() == "Windows":
228+
stdout = stdout.replace("\r\n", "")
227229
if retcode:
228230
self.fail(stderr)
229231
try:
@@ -250,6 +252,9 @@ def test_model_object_parser_metavar(self):
250252

251253
def test_model_object_parser_metavar_override(self):
252254
stdout, stderr, retcode = run_command("poll_as_option", "--help", "--no-color")
255+
# TODO - why are extra newlines inserted here on windows??
256+
if platform.system() == "Windows":
257+
stdout = stdout.replace("\r\n", "")
253258
if retcode:
254259
self.fail(stderr)
255260
try:

0 commit comments

Comments
 (0)