From ed7a7e5f7bd507e7637adaa9e6345ffc6a09228e Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Tue, 28 May 2019 14:46:14 -0400 Subject: [PATCH] Support parse_requirements out of pip < 10 and >= 10 --- awx/main/tests/functional/test_licenses.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/awx/main/tests/functional/test_licenses.py b/awx/main/tests/functional/test_licenses.py index ec4da1ad91..6c34321f8d 100644 --- a/awx/main/tests/functional/test_licenses.py +++ b/awx/main/tests/functional/test_licenses.py @@ -4,7 +4,11 @@ import json import os from django.conf import settings -from pip._internal.req import parse_requirements + +try: + from pip._internal.req import parse_requirements +except ImportError: + from pip.req import parse_requirements def test_python_and_js_licenses():