prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <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'
  ```
  
  </issue>
  <code>
  [start of docs/conftest.py]
  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 of docs/conftest.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
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"}]}