@@ -504,8 +504,13 @@ def test_prompt_install(self, env={}, directory: t.Optional[Path] = None):
504
504
505
505
rex = re .compile
506
506
expected = [
507
- rex (r"Append\s+the\s+above\s+contents\s+to\s+(?P<file>.*)\?" ), # 0
508
- rex (r"Create\s+(?P<file>.*)\s+with\s+the\s+above\s+contents\?" ), # 1
507
+ rex (
508
+ r"Append\s+the\s+above\s+contents\s+to\s+(?P<file>.*)\?" , re .DOTALL
509
+ ), # 0
510
+ rex (
511
+ r"Create\s+(?P<file>.*)\s+with\s+the\s+above\s+contents\?" ,
512
+ re .DOTALL ,
513
+ ), # 1
509
514
rex (r"Aborted\s+shell\s+completion\s+installation." ), # 2
510
515
rex (rf"Installed\s+autocompletion\s+for\s+{ self .shell } " ), # 3
511
516
]
@@ -521,6 +526,7 @@ def test_prompt_install(self, env={}, directory: t.Optional[Path] = None):
521
526
self .verify_remove (directory = directory )
522
527
523
528
install = pexpect .spawn (self .manage_script , install_command , env = env )
529
+ install .setwinsize (24 , 800 )
524
530
525
531
def wait_for_output (child ) -> t .Tuple [int , t .Optional [str ]]:
526
532
index = child .expect (expected )
@@ -545,6 +551,7 @@ def wait_for_output(child) -> t.Tuple[int, t.Optional[str]]:
545
551
546
552
# test an install
547
553
install = pexpect .spawn (self .manage_script , install_command , env = env )
554
+ install .setwinsize (24 , 800 )
548
555
549
556
while True :
550
557
idx , _ = wait_for_output (install )
0 commit comments