Patch "kunit: tool: Fix a python tuple typing error" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    kunit: tool: Fix a python tuple typing error

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     kunit-tool-fix-a-python-tuple-typing-error.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit ca65146c6bc45621fb4c7fc404de98110587fbd4
Author: David Gow <davidgow@xxxxxxxxxx>
Date:   Mon Feb 22 21:49:30 2021 -0800

    kunit: tool: Fix a python tuple typing error
    
    [ Upstream commit 7421b1a4d10c633ca5f14c8236d3e2c1de07e52b ]
    
    The first argument to namedtuple() should match the name of the type,
    which wasn't the case for KconfigEntryBase.
    
    Fixing this is enough to make mypy show no python typing errors again.
    
    Fixes 97752c39bd ("kunit: kunit_tool: Allow .kunitconfig to disable config items")
    Signed-off-by: David Gow <davidgow@xxxxxxxxxx>
    Reviewed-by: Daniel Latypov <dlatypov@xxxxxxxxxx>
    Acked-by: Brendan Higgins <brendanhiggins@xxxxxxxxxx>
    Signed-off-by: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/kunit/kunit_config.py b/tools/testing/kunit/kunit_config.py
index 02ffc3a3e5dc..b30e9d6db6b4 100644
--- a/tools/testing/kunit/kunit_config.py
+++ b/tools/testing/kunit/kunit_config.py
@@ -12,7 +12,7 @@ import re
 CONFIG_IS_NOT_SET_PATTERN = r'^# CONFIG_(\w+) is not set$'
 CONFIG_PATTERN = r'^CONFIG_(\w+)=(\S+|".*")$'
 
-KconfigEntryBase = collections.namedtuple('KconfigEntry', ['name', 'value'])
+KconfigEntryBase = collections.namedtuple('KconfigEntryBase', ['name', 'value'])
 
 class KconfigEntry(KconfigEntryBase):
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux