From 8056ac53936d32395c1db3f4f0b2bc051c918f8d Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Tue, 20 Mar 2018 11:58:11 -0400 Subject: [PATCH] Delay import of freeze to make tests run (#1617) * Delay import of freeze to make tests run * fix flake8 error --- awx/main/tests/functional/test_python_requirements.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/tests/functional/test_python_requirements.py b/awx/main/tests/functional/test_python_requirements.py index 88d86cf3f3..205e0cd6f7 100644 --- a/awx/main/tests/functional/test_python_requirements.py +++ b/awx/main/tests/functional/test_python_requirements.py @@ -2,13 +2,14 @@ import os import re import pytest -from pip.operations import freeze from django.conf import settings @pytest.mark.skip(reason="This test needs some love") def test_env_matches_requirements_txt(): + from pip.operations import freeze + def check_is_in(src, dests): if src not in dests: print("%s not in" % src)