'Test functions that call path_error2(), providing two filenames in their exceptions.'

def test_path_error2(self):

    for name in ('rename', 'replace', 'link', 'symlink'):
        function = getattr(os, name, None)
        if function:
            for dst in ('noodly2', support.TESTFN):
                try:
                    function('doesnotexistfilename', dst)
                except OSError as e:
                    self.assertIn("'doesnotexistfilename'    ->    '{}'".format(dst), str(e))
                    break
            else:
                self.fail(('No    valid    path_error2()    test    for    os.' + name))
