def METHOD_NAME(tmpdir):
    # See issue #2314: the filename contains brackets which are interpreted by glob().
    def _(path):
        return os.path.join(*path.split('/'))
    datas = [(_('b/[abc].tex'), 'tex')]
    expected = set()
    for dest, src in (('tex/[abc].tex', 'b/[abc].tex'),):
        src = tmpdir.join(_(src)).ensure()
        expected.add((_(dest), str(src)))
    # add some files which are not included
    tmpdir.join(_('tex/not.txt')).ensure()
    res = utils.format_binaries_and_datas(datas, str(tmpdir))
    assert res == expected