Skip to content

Commit

Permalink
Use Python 3 for virtualenv test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
waipeng committed Oct 5, 2020
1 parent 87f4afa commit 89b3324
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions spec/acceptance/virtualenv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
# Using puppet_apply as a helper
it 'works with no errors' do
pp = <<-EOS
if $facts['os']['name'] == 'Ubuntu' and $facts['os']['release']['major'] == '16.04' {
$version = '3'
} else {
$version = 'system'
}
$version = '3'
class { 'python' :
version => $version,
pip => 'present',
Expand All @@ -19,6 +16,7 @@ class { 'python' :
ensure => 'present',
version => $version,
systempkgs => false,
distribute => false,
venv_dir => '/opt/venv',
}
-> python::pip { 'rpyc' :
Expand Down

0 comments on commit 89b3324

Please sign in to comment.