Skip to content
Next Next commit
Comment what TestInstallation._set_up_venv does
So that the meaning of the `venv.sources` accesses in
`test_installation` is more readily clear.
  • Loading branch information
EliahKagan committed Jun 15, 2025
commit 953d1616e7385ec6aac1e7a6212c689874c9409c
4 changes: 4 additions & 0 deletions test/test_installation.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@ def test_installation(self, rw_dir):

@staticmethod
def _set_up_venv(rw_dir):
# Initialize the virtual environment.
venv = VirtualEnvironment(rw_dir, with_pip=True)

# Make its src directory a symlink to our own top-level source tree.
os.symlink(
os.path.dirname(os.path.dirname(__file__)),
venv.sources,
target_is_directory=True,
)

return venv
Loading