Skip to content

DeprecationWarnings related to SWIG types when running tests on Python 3.12 #149

@michaeltryby

Description

@michaeltryby

Issue Type: Bug

Description:
When running unit tests for this repository on Python 3.12 (all operating systems), a series of DeprecationWarnings are displayed:

<frozen importlib._bootstrap>:488
<frozen importlib._bootstrap>:488
  <frozen importlib._bootstrap>:488: DeprecationWarning: builtin type SwigPyPacked has no __module__ attribute
<frozen importlib._bootstrap>:488
<frozen importlib._bootstrap>:488
  <frozen importlib._bootstrap>:488: DeprecationWarning: builtin type SwigPyObject has no __module__ attribute
<frozen importlib._bootstrap>:488
  <frozen importlib._bootstrap>:488: DeprecationWarning: builtin type swigvarlink has no __module__ attribute

See: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

Steps to Reproduce:

  • Run the unit tests with Python 3.12 on any operating system.

Additional Notes:

  • Not sure about other Python versions.
  • These warnings may be related to underlying SWIG bindings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions