code: def test_writing_mode_constructor(self):
      # Expecting file to be erased.
      # But python execution of test will erase it before pythran can :s
      self.tempfile()
      self.run_test(
          """
              def writing_mode_constructor(filename):
                  f = open(filename, "w")
                  f.close()""",
          self.filename,
          prelude=self.reinit_file,
          writing_mode_constructor=[str],
      )
  
      with open(self.filename) as fd:
          self.assertEqual(fd.read(), "")
  
imports: from tempfile import mkstemp
  from pythran.tests import TestEnv
  import unittest
  from pythran.typing import List
label_desc: Use image node_id 7 for calling the TestFile obj's underlying member method code with example usage: obj.test_writing_mode_constructor() without return types