Skip to content

Commit f5d8ea5

Browse files
authored
Unit Tests: Ignore deprecation Warning from BlackDuck pypi package (#13225)
* Unit Tests: Ignore deprecation Warning from BlackDuck pypi package * Accommodate ruff
1 parent 01d052f commit f5d8ea5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

dojo/tools/api_blackduck/api_client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
from blackduck import Client
1+
import warnings
2+
3+
# Ignore DeprecationWarning from the blackduck library because we cannot do anything about it
4+
# until they fix it in their library
5+
warnings.filterwarnings("ignore", category=DeprecationWarning)
6+
from blackduck import Client # noqa: E402
27

38

49
class BlackduckAPI:

0 commit comments

Comments
 (0)