prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Tests failing with new Sybil
  Sybil 3.0.0 was just released, and at least the following change breaks our tests: `CodeBlockParser has been renamed to PythonCodeBlockParser`
  
  ```python-traceback
  docs/conftest.py:24: in <module>
      CodeBlockParser(future_imports=['print_function']),
  E   TypeError: __init__() got an unexpected keyword argument 'future_imports'
  ```
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `docs/conftest.py`
  Content:
  ```
  1 import os
  2 from doctest import ELLIPSIS, NORMALIZE_WHITESPACE
  3 
  4 from scrapy.http.response.html import HtmlResponse
  5 from sybil import Sybil
  6 from sybil.parsers.codeblock import CodeBlockParser
  7 from sybil.parsers.doctest import DocTestParser
  8 from sybil.parsers.skip import skip
  9 
  10 
  11 def load_response(url, filename):
  12     input_path = os.path.join(os.path.dirname(__file__), '_tests', filename)
  13     with open(input_path, 'rb') as input_file:
  14         return HtmlResponse(url, body=input_file.read())
  15 
  16 
  17 def setup(namespace):
  18     namespace['load_response'] = load_response
  19 
  20 
  21 pytest_collect_file = Sybil(
  22     parsers=[
  23         DocTestParser(optionflags=ELLIPSIS | NORMALIZE_WHITESPACE),
  24         CodeBlockParser(future_imports=['print_function']),
  25         skip,
  26     ],
  27     pattern='*.rst',
  28     setup=setup,
  29 ).pytest()
  30
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/docs/conftest.py b/docs/conftest.py
  --- a/docs/conftest.py
  +++ b/docs/conftest.py
  @@ -3,7 +3,11 @@
   
   from scrapy.http.response.html import HtmlResponse
   from sybil import Sybil
  -from sybil.parsers.codeblock import CodeBlockParser
  +try:
  +    # >2.0.1
  +    from sybil.parsers.codeblock import PythonCodeBlockParser
  +except ImportError:
  +    from sybil.parsers.codeblock import CodeBlockParser as PythonCodeBlockParser
   from sybil.parsers.doctest import DocTestParser
   from sybil.parsers.skip import skip
   
  @@ -21,7 +25,7 @@
   pytest_collect_file = Sybil(
       parsers=[
           DocTestParser(optionflags=ELLIPSIS | NORMALIZE_WHITESPACE),
  -        CodeBlockParser(future_imports=['print_function']),
  +        PythonCodeBlockParser(future_imports=['print_function']),
           skip,
       ],
       pattern='*.rst',
  
verification_info: {"golden_diff": "diff --git a/docs/conftest.py b/docs/conftest.py\n--- a/docs/conftest.py\n+++ b/docs/conftest.py\n@@ -3,7 +3,11 @@\n \n from scrapy.http.response.html import HtmlResponse\n from sybil import Sybil\n-from sybil.parsers.codeblock import CodeBlockParser\n+try:\n+    # >2.0.1\n+    from sybil.parsers.codeblock import PythonCodeBlockParser\n+except ImportError:\n+    from sybil.parsers.codeblock import CodeBlockParser as PythonCodeBlockParser\n from sybil.parsers.doctest import DocTestParser\n from sybil.parsers.skip import skip\n \n@@ -21,7 +25,7 @@\n pytest_collect_file = Sybil(\n     parsers=[\n         DocTestParser(optionflags=ELLIPSIS | NORMALIZE_WHITESPACE),\n-        CodeBlockParser(future_imports=['print_function']),\n+        PythonCodeBlockParser(future_imports=['print_function']),\n         skip,\n     ],\n     pattern='*.rst',\n", "issue": "Tests failing with new Sybil\nSybil 3.0.0 was just released, and at least the following change breaks our tests: `CodeBlockParser has been renamed to PythonCodeBlockParser`\r\n\r\n```python-traceback\r\ndocs/conftest.py:24: in <module>\r\n    CodeBlockParser(future_imports=['print_function']),\r\nE   TypeError: __init__() got an unexpected keyword argument 'future_imports'\r\n```\n", "before_files": [{"content": "import os\nfrom doctest import ELLIPSIS, NORMALIZE_WHITESPACE\n\nfrom scrapy.http.response.html import HtmlResponse\nfrom sybil import Sybil\nfrom sybil.parsers.codeblock import CodeBlockParser\nfrom sybil.parsers.doctest import DocTestParser\nfrom sybil.parsers.skip import skip\n\n\ndef load_response(url, filename):\n    input_path = os.path.join(os.path.dirname(__file__), '_tests', filename)\n    with open(input_path, 'rb') as input_file:\n        return HtmlResponse(url, body=input_file.read())\n\n\ndef setup(namespace):\n    namespace['load_response'] = load_response\n\n\npytest_collect_file = Sybil(\n    parsers=[\n        DocTestParser(optionflags=ELLIPSIS | NORMALIZE_WHITESPACE),\n        CodeBlockParser(future_imports=['print_function']),\n        skip,\n    ],\n    pattern='*.rst',\n    setup=setup,\n).pytest()\n", "path": "docs/conftest.py"}], "after_files": [{"content": "import os\nfrom doctest import ELLIPSIS, NORMALIZE_WHITESPACE\n\nfrom scrapy.http.response.html import HtmlResponse\nfrom sybil import Sybil\ntry:\n    # >2.0.1\n    from sybil.parsers.codeblock import PythonCodeBlockParser\nexcept ImportError:\n    from sybil.parsers.codeblock import CodeBlockParser as PythonCodeBlockParser\nfrom sybil.parsers.doctest import DocTestParser\nfrom sybil.parsers.skip import skip\n\n\ndef load_response(url, filename):\n    input_path = os.path.join(os.path.dirname(__file__), '_tests', filename)\n    with open(input_path, 'rb') as input_file:\n        return HtmlResponse(url, body=input_file.read())\n\n\ndef setup(namespace):\n    namespace['load_response'] = load_response\n\n\npytest_collect_file = Sybil(\n    parsers=[\n        DocTestParser(optionflags=ELLIPSIS | NORMALIZE_WHITESPACE),\n        PythonCodeBlockParser(future_imports=['print_function']),\n        skip,\n    ],\n    pattern='*.rst',\n    setup=setup,\n).pytest()\n", "path": "docs/conftest.py"}]}