[Lldb-commits] [lldb] 1ec8197 - Temporarily skip this test for Python 3.9.

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 13 16:52:02 PST 2024


Author: Jim Ingham
Date: 2024-02-13T16:51:55-08:00
New Revision: 1ec81976e4937ea9a09cefd41f25b3c5d1394f2c

URL: https://github.com/llvm/llvm-project/commit/1ec81976e4937ea9a09cefd41f25b3c5d1394f2c
DIFF: https://github.com/llvm/llvm-project/commit/1ec81976e4937ea9a09cefd41f25b3c5d1394f2c.diff

LOG: Temporarily skip this test for Python 3.9.

When the parsed command python code is run on 3.9, I get:

File ".../lib/python3.9/site-packages/lldb/plugins/parsed_cmd.py", line 124, in translate_value
    return cls.translators[value_type](value)
TypeError: 'staticmethod' object is not callable

But this works correctly in Python 3.10 on macOS and Linux.  I'm guessing something
changed between those versions, and I'll have to do something to work around the difference.
But I'm going to skip the test on 3.9 while I figure that out.

Added: 
    

Modified: 
    lldb/test/API/commands/command/script/add/TestAddParsedCommand.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/commands/command/script/add/TestAddParsedCommand.py b/lldb/test/API/commands/command/script/add/TestAddParsedCommand.py
index bbf330500568b5..6cbe888af99dc6 100644
--- a/lldb/test/API/commands/command/script/add/TestAddParsedCommand.py
+++ b/lldb/test/API/commands/command/script/add/TestAddParsedCommand.py
@@ -15,6 +15,7 @@ class ParsedCommandTestCase(TestBase):
 
     # This crashes on the x86_64 Debian bot, but the failure is not helpful.
     # Disable the test while I try to find a way to reproduce.
+    @skipIf(py_version=("<=", (3, 9)))
     def test(self):
         self.pycmd_tests()
 


        


More information about the lldb-commits mailing list