Skip to content

Commit

Permalink
tests: use env.python instead of env._bin("python")
Browse files Browse the repository at this point in the history
  • Loading branch information
abn committed Apr 29, 2021
1 parent b6a75a7 commit f754b6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/masonry/builders/test_editable_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def test_builder_installs_proper_files_for_standard_packages(simple_poetry, tmp_
if __name__ == '__main__':
baz.boom.bim()
""".format(
python=tmp_venv._bin("python")
python=tmp_venv.python
)

assert baz_script == tmp_venv._bin_dir.joinpath("baz").read_text()
Expand All @@ -165,7 +165,7 @@ def test_builder_installs_proper_files_for_standard_packages(simple_poetry, tmp_
if __name__ == '__main__':
bar()
""".format(
python=tmp_venv._bin("python")
python=tmp_venv.python
)

assert foo_script == tmp_venv._bin_dir.joinpath("foo").read_text()
Expand All @@ -177,7 +177,7 @@ def test_builder_installs_proper_files_for_standard_packages(simple_poetry, tmp_
if __name__ == '__main__':
bar.baz()
""".format(
python=tmp_venv._bin("python")
python=tmp_venv.python
)

assert fox_script == tmp_venv._bin_dir.joinpath("fox").read_text()
Expand Down

0 comments on commit f754b6d

Please sign in to comment.