code: def test_a85decode_errors(self):
      illegal = (set(range(32)) | set(range(118, 256))) - set(
          b" \t\n\r\v"
      )
      for c in illegal:
          with self.assertRaises(ValueError, msg=bytes([c])):
              base64.a85decode(b"!!!!" + bytes([c]))
          with self.assertRaises(ValueError, msg=bytes([c])):
              base64.a85decode(b"!!!!" + bytes([c]), adobe=False)
          with self.assertRaises(ValueError, msg=bytes([c])):
              base64.a85decode(
                  b"<~!!!!" + bytes([c]) + b"~>", adobe=True
              )
  
      self.assertRaises(
          ValueError, base64.a85decode, b"malformed", adobe=True
      )
      self.assertRaises(
          ValueError, base64.a85decode, b"<~still malformed", adobe=True
      )
  
      # With adobe=False (the default), Adobe framing markers are disallowed
      self.assertRaises(ValueError, base64.a85decode, b"<~~>")
      self.assertRaises(
          ValueError, base64.a85decode, b"<~~>", adobe=False
      )
      base64.a85decode(b"<~~>", adobe=True)  # sanity check
  
      self.assertRaises(
          ValueError, base64.a85decode, b"abcx", adobe=False
      )
      self.assertRaises(
          ValueError, base64.a85decode, b"abcdey", adobe=False
      )
      self.assertRaises(
          ValueError,
          base64.a85decode,
          b"a b\nc",
          adobe=False,
          ignorechars=b"",
      )
  
      self.assertRaises(ValueError, base64.a85decode, b"s", adobe=False)
      self.assertRaises(
          ValueError, base64.a85decode, b"s8", adobe=False
      )
      self.assertRaises(
          ValueError, base64.a85decode, b"s8W", adobe=False
      )
      self.assertRaises(
          ValueError, base64.a85decode, b"s8W-", adobe=False
      )
      self.assertRaises(
          ValueError, base64.a85decode, b's8W-"', adobe=False
      )
      self.assertRaises(
          ValueError, base64.a85decode, b"aaaay", foldspaces=True
      )
  
imports: import unittest
  import base64
  import binascii
  import os
  from array import array
  from test.support import os_helper
  from test.support import script_helper
label_desc: Use image node_id 27 for calling the BaseXYTestCase obj's underlying member method code with example usage: obj.test_a85decode_errors() without return types