From 3129229fc850ad8039b2241f389cd5f6fe28f840 Mon Sep 17 00:00:00 2001 From: Alexander Mazuruk Date: Fri, 26 Mar 2021 16:18:03 +0100 Subject: Dependencies update: Wheel, PyYAML, httplib2, HTTPretty Changelogs of updated pkgs: https://wheel.readthedocs.io/en/stable/news.html https://github.com/yaml/pyyaml/blob/master/CHANGES https://github.com/httplib2/httplib2/blob/master/CHANGELOG https://httpretty.readthedocs.io/en/latest/changelog.html Additionally resolved some warnings reported by tox: - remove unused func from tests that used deprecated python lib. - change collections import to collections.abc Issue-ID: DCAEGEN2-2720 Signed-off-by: Alexander Mazuruk Change-Id: I1dadbe9e6e410bdec1a06ea7c69e49576551218b --- tests/test_binding.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'tests') diff --git a/tests/test_binding.py b/tests/test_binding.py index 170e8b1..25ab192 100644 --- a/tests/test_binding.py +++ b/tests/test_binding.py @@ -1,6 +1,7 @@ # ============LICENSE_START======================================================= # Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved. # Copyright (c) 2019 Pantheon.tech. All rights reserved. +# Copyright 2021 Samsung Electronics. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +26,6 @@ import pytest import json import base64 import errno -import imp import time from pip._internal import main as _main from onap_dcae_cbs_docker_client.client import get_config @@ -37,15 +37,6 @@ import unittest MODULE_EXTENSIONS = ('.py', '.pyc', '.pyo') -def package_contents(package_name): - file, pathname, description = imp.find_module(package_name) - if file: - raise ImportError('Not a package: %r', package_name) - # Use a set because some may be both source and compiled. - return set([os.path.splitext(module)[0] - for module in os.listdir(pathname) - if module.endswith(MODULE_EXTENSIONS)]) - ##### # MONKEYPATCHES ##### -- cgit 1.2.3-korg