Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Skip failing test on py 3.4
Browse files Browse the repository at this point in the history
The test is trying to run ansible, which can only run on python 3.5+
  • Loading branch information
Virgil Dupras committed Oct 2, 2017
1 parent ddc7927 commit 6c65101
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration/test_container.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys
import types
import unittest.mock

Expand Down Expand Up @@ -73,6 +74,10 @@ def test_can_try_to_halt_a_container_that_is_already_stopped(self, persistent_co
persistent_container.halt()
assert persistent_container._container.status_code == constants.CONTAINER_STOPPED

@pytest.mark.skipif(
sys.version_info < (3, 5),
reason="ansible requires python 3.5+"
)
@pytest.mark.parametrize("lxd_transport", [False, True])
def test_can_provision_a_container_ansible(self, persistent_container, lxd_transport):
# We want to make sure that barebone setup is executed on provision()
Expand Down

0 comments on commit 6c65101

Please sign in to comment.