Clean up deprecated functions in python tests

XMLWordPrintableJSON

    • StorEng - Defined Pipeline
    • 3

      By setting the PYTHONDEVMODE env flag we can run python in development mode which will enable multiple warnings including deprecation warnings.

      Using development mode on our python tests with
      PYTHONDEVMODE=1 python3 test/suite/run.py -j $(nproc)

      results in a handful of warnings including:

      DeprecationWarning: isSet() is deprecated, use is_set() instead while not self.done.isSet(): 

      and

      DeprecationWarning: Please use assertEqual instead. self.assertEquals(cursor.next(), wiredtiger.WT_NOTFOUND) 

      We should fix these warnings such that running the command listed above doesn't yield any output.

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

                Created:
                Updated:
                Resolved: