def METHOD_NAME(self):
    # See bugs #1668596/#1720897
    sources = self.mkdtemp()
    open(os.path.join(sources, "__init__.py"), "w").close()
    testdir = os.path.join(sources, "doc")
    os.mkdir(testdir)
    open(os.path.join(testdir, "testfile"), "w").close()
    os.chdir(sources)
    dist = Distribution({"packages": ["pkg"],
                         "package_dir": {"pkg": ""},
                         "package_data": {"pkg": ["doc/*"]}})
    # script_name need not exist, it just need to be initialized
    dist.script_name = os.path.join(sources, "setup.py")
    dist.script_args = ["build"]
    dist.parse_command_line()
    try:
        dist.run_commands()
    except DistutilsFileError:
        self.fail("failed package_data test when package_dir is ''")