Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7744984

Browse files
authored
Merge pull request#1664 from EliahKagan/venv
Use venv instead of virtualenv in test_installation
2 parentsf14be1b +ad76c99 commit7744984

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎test-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ pre-commit
66
pytest
77
pytest-cov
88
pytest-sugar
9-
virtualenv

‎test/test_installation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
importast
55
importos
66
importsubprocess
7+
importsys
8+
79
fromgit.compatimportis_win
810
fromtest.libimportTestBase
911
fromtest.lib.helperimportwith_rw_directory
@@ -12,7 +14,7 @@
1214
classTestInstallation(TestBase):
1315
defsetUp_venv(self,rw_dir):
1416
self.venv=rw_dir
15-
subprocess.run(["virtualenv",self.venv],stdout=subprocess.PIPE)
17+
subprocess.run([sys.executable,"-m","venv",self.venv],stdout=subprocess.PIPE)
1618
bin_name="Scripts"ifis_winelse"bin"
1719
self.python=os.path.join(self.venv,bin_name,"python")
1820
self.pip=os.path.join(self.venv,bin_name,"pip")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp