docstr: For overrun completeness, test as:
  valgrind pytest -qq Tests/test_image.py::TestImage::test_overrun | grep decode.c
docstr_tok: ["For","overrun","completeness",",","test","as",":","valgrind","pytest","-qq","Tests\/test_image.py",":",":TestImage",":",":test_overrun","|","grep","decode.c"]
code: def test_overrun(self, path):
      """For overrun completeness, test as:
      valgrind pytest -qq Tests/test_image.py::TestImage::test_overrun | grep decode.c
      """
      with Image.open(os.path.join("Tests/images", path)) as im:
          try:
              im.load()
              assert False
          except OSError as e:
              buffer_overrun = (
                  str(e) == "buffer overrun when reading image file"
              )
              truncated = "image file is truncated" in str(e)
  
              assert buffer_overrun or truncated
  
imports: import io
  import os
  import shutil
  import sys
  import tempfile
  import pytest
  from PIL import Image, ImageDraw, ImagePalette, UnidentifiedImageError
  from .helper import assert_image_equal, assert_image_equal_tofile, assert_image_similar_tofile, assert_not_all_same, hopper, is_win32, mark_if_feature_version, skip_unless_feature
label_desc: Use image node_id 54 for calling the TestImage obj's underlying member method code with example usage: obj.test_overrun(path) without return types