=== test session starts === platform linux -- Python 3.8.10 collected 1 item test_file.py::test_example FAILED =================================== FAILURES =================================== test_example def test_example(): # Test output often contains Python-like code x = 1 y = 2 > assert x == y E assert 1 == 2 test_file.py:5: AssertionError # More problematic content: >>> This looks like a REPL session >>> But it's actually test output "Unclosed string literal 'Another unclosed string [Unclosed list {Unclosed dict (Unclosed paren def 123invalid(): # Invalid Python identifier pass # Binary data b'\x00\x01\x02' # Unicode print("Hello ☺ World") === 1 failed ===