Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-11196

Clean up deprecated functions in python tests

    • 3
    • StorEng - Defined Pipeline

      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:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            andrew.morton@mongodb.com Andrew Morton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: