import os

pkgs = os.path.join(os.environ["ROOT"], "pkgs")
info_dir = os.path.join(pkgs, "conda-build-test-ignore-some-prefix-files-1.0-0", "info")
has_prefix_file = os.path.join(info_dir, "has_prefix")
print(info_dir)
assert os.path.isfile(has_prefix_file)
with open(has_prefix_file) as f:
    assert "test2" not in f.read()

[((18, 58), 'os.path.join', 'os.path.join', (["os.environ['ROOT']", '"""pkgs"""'], {}), "(os.environ['ROOT'], 'pkgs')\n", (30, 58), False, 'import os\n'), ((70, 147), 'os.path.join', 'os.path.join', (['pkgs', '"""conda-build-test-ignore-some-prefix-files-1.0-0"""', '"""info"""'], {}), "(pkgs, 'conda-build-test-ignore-some-prefix-files-1.0-0', 'info')\n", (82, 147), False, 'import os\n'), ((166, 202), 'os.path.join', 'os.path.join', (['info_dir', '"""has_prefix"""'], {}), "(info_dir, 'has_prefix')\n", (178, 202), False, 'import os\n'), ((226, 257), 'os.path.isfile', 'os.path.isfile', (['has_prefix_file'], {}), '(has_prefix_file)\n', (240, 257), False, 'import os\n')]