summaryrefslogtreecommitdiff
path: root/pbr/tests/test_packaging.py
diff options
context:
space:
mode:
Diffstat (limited to 'pbr/tests/test_packaging.py')
-rw-r--r--pbr/tests/test_packaging.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pbr/tests/test_packaging.py b/pbr/tests/test_packaging.py
index 07be547..3a70319 100644
--- a/pbr/tests/test_packaging.py
+++ b/pbr/tests/test_packaging.py
@@ -183,7 +183,8 @@ class Venv(fixtures.Fixture):
def _setUp(self):
path = self.useFixture(fixtures.TempDir()).path
- virtualenv.create_environment(path, clear=True)
+ virtualenv.cli_run([path])
+
python = os.path.join(path, 'bin', 'python')
command = [python] + self.pip_cmd + ['-U']
if self.modules and len(self.modules) > 0: