def METHOD_NAME(self):
    tmpdir = support.TESTFN + '.d'
    self.addCleanup(support.rmtree, tmpdir)
    os.mkdir(tmpdir)
    expected_stderr = f"recursedown('{os.path.basename(tmpdir)}')\n"
    self.assertEqual(
        self.pathfix(
            '#! /usr/bin/env python',
            ['-i', '/usr/bin/python3'],
            directory=tmpdir,
            stderr=expected_stderr),
        '#! /usr/bin/python3')