Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-3608

Unpin coverage dependency in the toolchain

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Back in PYTHON-2782 we pinned our coverage test dependency to coverage<5. This is now causing problems due to spamming the logs with deprecation warnings:

      [2023/02/15 21:17:22.216] /opt/python/3.11/lib/python3.11/site-packages/coverage/pytracer.py:187: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
      [2023/02/15 21:17:22.216]   if self.threading and self.thread.ident != self.threading.currentThread().ident:
      [2023/02/15 21:17:22.216] /opt/python/3.11/lib/python3.11/site-packages/coverage/pytracer.py:187: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
      [2023/02/15 21:17:22.216]   if self.threading and self.thread.ident != self.threading.currentThread().ident:
      [2023/02/15 21:17:22.216] /opt/python/3.11/lib/python3.11/site-packages/coverage/pytracer.py:187: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
      [2023/02/15 21:17:22.216]   if self.threading and self.thread.ident != self.threading.currentThread().ident:
      [2023/02/15 21:17:22.216] /opt/python/3.11/lib/python3.11/site-packages/coverage/pytracer.py:187: DeprecationWarning: currentThread() is deprecated, use current_thread() instead
      [2023/02/15 21:17:22.216]   if self.threading and self.thread.ident != self.threading.currentThread().ident:
      

      Let's unpin coverage now that we only support Python 3.7+.

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: