Skip to content

Commit

Permalink
Merge pull request #36 from bhipple/py3/list
Browse files Browse the repository at this point in the history
py3 prep: foo.values() does not return an indexable list
  • Loading branch information
grahamc authored Mar 22, 2020
2 parents dff6c9e + 4ea953d commit de811d8
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
3 changes: 1 addition & 2 deletions tests/functional/test_backups.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from os import path

from nose import tools

from tests.functional import generic_deployment_test

Expand Down Expand Up @@ -65,5 +64,5 @@ def backup_and_restore_path(self, path=""):

def check_command(self, command):
self.depl.evaluate()
machine = self.depl.machines.values()[0]
machine = list(self.depl.machines.values())[0]
return machine.run_command(command)
1 change: 0 additions & 1 deletion tests/functional/test_deploys_spot_instance.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from nose import tools
from tests.functional import single_machine_test
from os import path

Expand Down
1 change: 0 additions & 1 deletion tests/functional/test_ec2_rds_dbinstance.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from os import path

from nose import tools

from tests.functional import generic_deployment_test

Expand Down
3 changes: 1 addition & 2 deletions tests/functional/test_ec2_with_nvme_device_mapping.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from os import path

from nose import tools

from tests.functional import generic_deployment_test

Expand All @@ -27,5 +26,5 @@ def test_ec2_with_nvme_device_mapping(self):

def check_command(self, command):
self.depl.evaluate()
machine = self.depl.machines.values()[0]
machine = list(self.depl.machines.values())[0]
return machine.run_command(command)
4 changes: 1 addition & 3 deletions tests/functional/vpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
import tempfile

from nose import tools
from nose.plugins.attrib import attr
import boto3

from nixops.nix_expr import RawValue, Function, Call, py2nix
from nixops.nix_expr import py2nix
import nixops.util
from tests.functional import generic_deployment_test

Expand Down

0 comments on commit de811d8

Please sign in to comment.