From 1fd9a616a460f379f302e5d20d10ae1d1f27517e Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 19 Mar 2018 22:52:36 -0700 Subject: [PATCH] Fix uri test on Python 2.6. --- test/integration/targets/uri/files/constraints.txt | 1 + test/integration/targets/uri/tasks/main.yml | 1 + 2 files changed, 2 insertions(+) create mode 100644 test/integration/targets/uri/files/constraints.txt diff --git a/test/integration/targets/uri/files/constraints.txt b/test/integration/targets/uri/files/constraints.txt new file mode 100644 index 0000000000..309ba28c5c --- /dev/null +++ b/test/integration/targets/uri/files/constraints.txt @@ -0,0 +1 @@ +cryptography < 2.2 ; python_version < "2.7" # cryptography 2.2+ requires python 2.7+ diff --git a/test/integration/targets/uri/tasks/main.yml b/test/integration/targets/uri/tasks/main.yml index 7f0afe8e53..730c9c97eb 100644 --- a/test/integration/targets/uri/tasks/main.yml +++ b/test/integration/targets/uri/tasks/main.yml @@ -285,6 +285,7 @@ pip: name: "{{ item }}" state: latest + extra_args: "-c {{ role_path }}/files/constraints.txt" with_items: - urllib3 - PyOpenSSL