docstr: Test to make sure that locked arrays work.
  
  Regression test for issue 92.
docstr_tok: ["Test","to","make","sure","that","locked","arrays","work",".","Regression","test","for","issue","92","."]
code: def test_on_non_writeable_array_issue_92(self):
      """Test to make sure that locked arrays work.
  
      Regression test for issue 92.
      """
  
      def copy_with_writeable(array_to_copy):
          array_copy = array_to_copy.copy()
          array_copy.flags.writeable = array_to_copy.flags.writeable
          return array_copy
  
      dtype_tuple = self.io_dtypes[functions[self.func]]
  
      def array_type(test_shape, dtype):
          a = dtype_tuple[1](test_shape, dtype)
          a.flags.writeable = False
          return a
  
      for dtype in dtype_tuple[0]:
          for test_shape, s, kwargs in self.test_data:
              s = None
  
              self.validate(
                  array_type,
                  test_shape,
                  dtype,
                  s,
                  kwargs,
                  copy_func=copy_with_writeable,
              )
  
imports: from pyfftw import interfaces, _supported_types, _all_types_np
  from .test_pyfftw_base import run_test_suites, np_fft
  from ._get_default_args import get_default_args
  from packaging.version import Version
  import unittest
  import numpy
  import warnings
  import copy
label_desc: Use image node_id 23 for calling the InterfacesNumpyFFTTestFFT obj's underlying member method code with example usage: obj.test_on_non_writeable_array_issue_92() and returns: array_copy, a