Skip to content

Commit 89b3324

Browse files
committed
Use Python 3 for virtualenv test
Python 2 has been deprecated, we should default to testing with Python 3 In commit 04ebe2d, distribute was added as an option to be set to false if setting up a python3 virtualenv. Therefore, set distribute to false because we have defaulted to py3.
1 parent 87f4afa commit 89b3324

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

spec/acceptance/virtualenv_spec.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@
55
# Using puppet_apply as a helper
66
it 'works with no errors' do
77
pp = <<-EOS
8-
if $facts['os']['name'] == 'Ubuntu' and $facts['os']['release']['major'] == '16.04' {
9-
$version = '3'
10-
} else {
11-
$version = 'system'
12-
}
8+
$version = '3'
9+
1310
class { 'python' :
1411
version => $version,
1512
pip => 'present',
@@ -19,6 +16,7 @@ class { 'python' :
1916
ensure => 'present',
2017
version => $version,
2118
systempkgs => false,
19+
distribute => false,
2220
venv_dir => '/opt/venv',
2321
}
2422
-> python::pip { 'rpyc' :

0 commit comments

Comments
 (0)