← baseline_full_v2

rich_3468

failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · Textualize/rich

Task input

handle broken pipe

Handle BrokenPipe exceptions

Fixes https://github.com/Textualize/rich/issues/1591

Thanks to @lmmx for doing the legwork.

Tool calls (0)

#ToolArgumentsResult
No trace captured.

Test output

show
0     $375,126,118  
                              The Rise of                                       
                              Skywalker                                         
               May 25, 2018   Solo: A            $275,000,000     $393,151,347  
                              Star Wars                                         
                              Story                                             
               Dec 15, 2017   Star Wars          $262,000,000   $1,332,539,889  
                              Ep. VIII:                                         
                              The Last                                          
                              Jedi                                              
               May 19, 1999   Star Wars          $115,000,000   $1,027,044,677  
                              Ep. I: The                                        
                              phantom                                           
                              Menace                                            
                                                                                
    Syntax       1 def iter_last(values: Itera  {                               
 highlighting    2 │   """Iterate and generate  │   'foo': [                    
      &          3 │   iter_values = iter(valu  │   │   3.1427,                 
    pretty       4 │   try:                     │   │   (                       
   printing      5 │   │   previous_value = ne  │   │   │   'Paul Atreides',    
                 6 │   except StopIteration:    │   │   │   'Vladimir           
                 7 │   │   return               Harkonnen',                     
                 8 │   for value in iter_value  │   │   │   'Thufir Hawat'      
                 9 │   │   yield False, previo  │   │   )                       
                10 │   │   previous_value = va  │   ],                          
                11 │   yield True, previous_va  │   'atomic': (                 
                                                │   │   False,                  
                                                │   │   True,                   
                                                │   │   None                    
                                                │   )                           
                                                }                               
                                                                                
   Markdown   # Markdown                        ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ 
                                                ┃          Markdown           ┃ 
              Supports much of the *markdown*   ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ 
              __syntax__!                                                       
                                                Supports much of the markdown   
              - Headers                         syntax!                         
              - Basic formatting: **bold**,                                     
              *italic*, `code`                   • Headers                      
              - Block quotes                     • Basic formatting: bold,      
              - Lists, and more...                 italic, code                 
                                                 • Block quotes                 
                                                 • Lists, and more...           
                                                                                
    +more!    Progress bars, columns, styled logging handler, tracebacks,       
              etc...                                                            
                                                                                
rendered in 37.5ms (cold cache)
rendered in 12.3ms (warm cache)
╭──────────────────────── Thanks for trying out Rich! ─────────────────────────╮
│                                                                              │
│  We hope you enjoy using Rich!   Textualize https://github.com/textualize    │
│                                                                              │
│  Rich is maintained with ❤ by       Twitter https://twitter.com/willmcgugan  │
│  Textualize.io                                                               │
│                                                                              │
│  - Will McGugan                                                              │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "<frozen runpy>", line 203, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/tmp/swe_work/baseline_full_v2/rich_3468/b/workspace/rich/__main__.py", line 264, in <module>
    console.print(
    ~~~~~~~~~~~~~^
        Panel.fit(
        ^^^^^^^^^^
    ...<6 lines>...
        justify="center",
        ^^^^^^^^^^^^^^^^^
    )
    ^
  File "/tmp/swe_work/baseline_full_v2/rich_3468/b/workspace/rich/console.py", line 1676, in print
    with self:
         ^^^^
  File "/tmp/swe_work/baseline_full_v2/rich_3468/b/workspace/rich/console.py", line 864, in __exit__
    self._exit_buffer()
    ~~~~~~~~~~~~~~~~~^^
  File "/tmp/swe_work/baseline_full_v2/rich_3468/b/workspace/rich/console.py", line 822, in _exit_buffer
    self._check_buffer()
    ~~~~~~~~~~~~~~~~~~^^
  File "/tmp/swe_work/baseline_full_v2/rich_3468/b/workspace/rich/console.py", line 2068, in _check_buffer
    self.file.flush()
    ~~~~~~~~~~~~~~~^^
BrokenPipeError: [Errno 32] Broken pipe
Exception ignored on flushing sys.stdout:
BrokenPipeError: [Errno 32] Broken pipe
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 97 passed in 0.77s