code: def testReadinto_text(self):
      # verify readinto refuses text files
      a = array("b", b"x" * 10)
      self.f.close()
      self.f = self.open(TESTFN, encoding="utf-8")
      if hasattr(self.f, "readinto"):
          self.assertRaises(TypeError, self.f.readinto, a)
  
imports: import sys
  import os
  import unittest
  from array import array
  from weakref import proxy
  import io
  import _pyio
  from test.support import gc_collect
  from test.support.os_helper import TESTFN
  from test.support import os_helper
  from test.support import warnings_helper
  from collections import UserList
label_desc: Use image node_id 6 for calling the AutoFileTests obj's underlying member method code with example usage: obj.testReadinto_text() without return types