============================= test session starts ============================== platform linux -- Python 3.8.10, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 rootdir: /testbed collected 1 item test_example.py F [100%] =================================== FAILURES =================================== ________________________________ test_example _________________________________ def test_example(): # Content that looks like HTML/XML html = "
content
" xml = "text" # JavaScript/C-like syntax js = "if (a < b && c > d) { return func(); }" c_code = "int main() { printf("Hello %s\n", "world"); }" # Shell commands shell = "echo $PATH | grep -E '^/usr'" # SQL queries sql = "SELECT * FROM users WHERE id < 100 AND status = 'active'" # Regular expressions regex = r'<([a-z]+)[^>]*>.*?' # Markdown/HTML mix markdown = "# Header Some **bold** text with HTML inside" # JSON data json_data = '{"key": "value", "number": 42, "list": [1, 2, 3]}' # YAML-like content yaml = "server:\n port: 8080\n host: localhost\ndatabase:\n name: test\n user: admin" # Dockerfile content dockerfile = "FROM python:3.8\nRUN pip install pytest\nCOPY . /app\nWORKDIR /app\nCMD ["pytest"]" # Makefile content makefile = "test:\n pytest -xvs\n\nclean:\n rm -rf __pycache__ .pytest_cache" # LaTeX content latex = "\\documentclass{article}\\begin{document}\\Hello, $\\alpha + \\beta = \\gamma$ world!\\end{document}" > assert False, "Complex test with multiple language snippets" E AssertionError: Complex test with multiple language snippets E assert False test_example.py:50: AssertionError =========================== short test summary info ============================ FAILED test_example.py::test_example - AssertionError: Complex test with multiple language snippets ============================== 1 failed in 0.12s ==============================