Repository: pywbem/pywbemtools (language: python)

Issue:
Fixed new pylint issue in test file; Fixed safety issues
No review needed.


Discussion / hints:

Fix patch:
diff --git a/.safety-policy-install.yml b/.safety-policy-install.yml
index b7a15600..ba170813 100644
--- a/.safety-policy-install.yml
+++ b/.safety-policy-install.yml
@@ -48,6 +48,8 @@ security:
             reason: There is no fixed pip version
         67895:
             reason: Fixed idna version 3.7 requires requests>=2.26.0 which requires Python>=3.6 and is used there
+        71064:
+            reason: Fixed requests version 2.32.2 requires Python>=3.8 and is used there
 
     # Continue with exit code 0 when vulnerabilities are found.
     continue-on-vulnerability-error: False
diff --git a/docs/changes.rst b/docs/changes.rst
index 69510244..babc1d7f 100644
--- a/docs/changes.rst
+++ b/docs/changes.rst
@@ -16,7 +16,7 @@ Released: not yet
 
 **Bug fixes:**
 
-* Addressed safety issues up to 2024-05-21.
+* Addressed safety issues up to 2024-07-09.
 
 * Fixed new issues reported by Pylint 3.2.
 
diff --git a/minimum-constraints-install.txt b/minimum-constraints-install.txt
index 3f829228..dc119ead 100644
--- a/minimum-constraints-install.txt
+++ b/minimum-constraints-install.txt
@@ -99,7 +99,8 @@ urllib3==1.26.18; python_version >= '3.7'
 ply==3.10
 requests==2.25.0; python_version == '2.7'
 requests==2.26.0; python_version == '3.6'
-requests==2.31.0; python_version >= '3.7'
+requests==2.31.0; python_version == '3.7'
+requests==2.32.2; python_version >= '3.8'
 certifi==2019.11.28; python_version == '2.7'
 certifi==2023.07.22; python_version >= '3.6'
 
diff --git a/setup.py b/setup.py
index 067df23f..15e4a8dd 100644
--- a/setup.py
+++ b/setup.py
@@ -117,8 +117,8 @@ def read_file(a_file):
     platforms='any',
 
     # Keep these Python versions in sync with pywbemtools/__init__.py
-    python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, ' \
-    '!=3.5.*',
+    python_requires=('>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, '
+                     '!=3.5.*'),
     classifiers=[
         'Development Status :: 5 - Production/Stable',
         'Environment :: Console',


Test patch:
diff --git a/tests/unit/pywbemcli/test_general_options.py b/tests/unit/pywbemcli/test_general_options.py
index 2fb6d84d..1a928302 100644
--- a/tests/unit/pywbemcli/test_general_options.py
+++ b/tests/unit/pywbemcli/test_general_options.py
@@ -582,7 +582,7 @@ class       Command group for CIM classes.
      {'general': ['--mock-server', 'invalidfilename.mofx'],
       'cmdgrp': 'connection',
       'args': ['show']},
-     {'stderr': "Invalid value for '-m' / '--mock-server': File " \
+     {'stderr': "Invalid value for '-m' / '--mock-server': File "
                 "'invalidfilename.mofx' does not exist.",
       'rc': 2,
       'test': 'innows'},