Repository: pywbem/pywbemtools (language: python)

Issue:
Resolved new issues reported by Pylint 2.13
No review needed.


Discussion / hints:

Fix patch:
diff --git a/docs/changes.rst b/docs/changes.rst
index 2554d441..5eec0ba0 100644
--- a/docs/changes.rst
+++ b/docs/changes.rst
@@ -16,6 +16,8 @@ Released: not yet
 
 **Bug fixes:**
 
+* Resolved new issues reported by Pylint 2.13. (issue #1164)
+
 **Enhancements:**
 
 **Cleanup:**


Test patch:
diff --git a/tests/unit/utils.py b/tests/unit/utils.py
index c9675905..133fb367 100644
--- a/tests/unit/utils.py
+++ b/tests/unit/utils.py
@@ -398,8 +398,9 @@ def assert_patterns_in_lines(exp_patterns, act_lines, source, desc):
       desc (string): Testcase description.
     """
     act_lines_iter = iter(act_lines)
+    start_line = '<begin>'
+    i = 0  # avoids pylint warning used-before-assignment
     try:
-        start_line = '<begin>'
         act_line = next(act_lines_iter)
         for i, exp_pattern in enumerate(exp_patterns):
             start_line = act_line