← baseline_full_v2

rich_4077

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

Task input

proxy isatty

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

Tool calls (0)

#ToolArgumentsResult
No trace captured.

Test output

show
...F
=================================== FAILURES ===================================
_________________________________ test_isatty __________________________________

    def test_isatty():
        """Check isatty is proxied
    
        Regression test for https://github.com/Textualize/rich/issues/4041
    
        """
    
        class TTYFile:
            def isatty(self) -> bool:
                return True
    
        file = TTYFile()
        console = Console()
        file_proxy = FileProxy(console, file)
>       assert file_proxy.isatty()
E       assert False
E        +  where False = <built-in method isatty of FileProxy object at 0x106581300>()
E        +    where <built-in method isatty of FileProxy object at 0x106581300> = <rich.file_proxy.FileProxy object at 0x106581300>.isatty

tests/test_file_proxy.py:54: AssertionError
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 3 passed in 0.08s