Fix 'TypeError: 'staticmethod' object is not callable' error in wttest.py for Mac/OSX

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Test Python
    • None
    • Storage Engines - Foundations
    • None
    • None

      When running a python test on a mac, get this error:

      $ python3 ../test/suite/run.py base
      Traceback (most recent call last):
        File "/Users/dda/wt/git/wt-16292-use-correct-hs/build/../test/suite/run.py", line 600, in <module>
          import wttest
        File "/Users/dda/wt/git/wt-16292-use-correct-hs/test/suite/wttest.py", line 123, in <module>
          class WiredTigerTestCase(abstract_test_case.AbstractWiredTigerTestCase):
        File "/Users/dda/wt/git/wt-16292-use-correct-hs/test/suite/wttest.py", line 302, in WiredTigerTestCase
          def _callTestMethod(self, method):
      TypeError: 'staticmethod' object is not callable 

      A workaround to fix this is to comment the two lines in wttest.py that begin with @dumpErrorLogOnWtError.  This appeared to break as a result of WT-16368, which added these annotations.

      Using Python 3.9.18 from the mongodb toolchain.

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: