Skip to content

Commit

Permalink
No need to do weird splitting for dist_name
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjliu committed Sep 20, 2019
1 parent bfaf980 commit 8c4a5f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ def test_tarball_install_and_bad_metadata(self):
if not on_win:
# xz is only a python dependency on unix
xz_prec = next(PrefixData(prefix).query("xz"))
dist_name = '-'.join(xz_prec.dist_str().split('::')[-1].split('-')[:3])
dist_name = xz_prec.dist_str().split('::')[-1]
xz_prefix_data_json_path = join(prefix, 'conda-meta', dist_name + '.json')
copyfile(xz_prefix_data_json_path,
join(prefix, 'conda-meta', 'xz.json'))
Expand Down

0 comments on commit 8c4a5f7

Please sign in to comment.